Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation about creating Sharded Keyspace should be clearer #1434

Open
podoi17 opened this issue Apr 3, 2023 · 1 comment
Open

Documentation about creating Sharded Keyspace should be clearer #1434

podoi17 opened this issue Apr 3, 2023 · 1 comment

Comments

@podoi17
Copy link

podoi17 commented Apr 3, 2023

Reading the Documentation about sharded keyspace
https://vitess.io/docs/16.0/user-guides/vschema-guide/sharded/
leaves the impression that it is enough to create shards for a table when executing the json via
vtctldclient ApplyVSchema --vschema-file vschema_customer_sharded.json customer
But after "just" doing that and executing

mysql> use `customer:-80`;
Database changed
mysql> select * from customer;

the error of
ERROR 1105 (HY000): target: customer.-80.primary: no healthy tablet available for 'keyspace:"customer" shard:"-80" tablet_type:PRIMARY'
occurs.

All steps from the scripts (30X) are necessary to create shards. The documentation is clearly not saying that.

@Satarupa22-SD
Copy link
Contributor

@mattlord can you please check the PR #1817. Please do let me know if any changes are needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants