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

Tablet splitting: Drive tablet splitting from master #1461

Closed
ttyusupov opened this issue May 31, 2019 · 0 comments
Closed

Tablet splitting: Drive tablet splitting from master #1461

ttyusupov opened this issue May 31, 2019 · 0 comments
Assignees
Labels
kind/enhancement This is an enhancement of an existing feature

Comments

@ttyusupov
Copy link
Contributor

ttyusupov commented May 31, 2019

Parent ticket: "Tablet splitting" #1004.

Depends on #1459.

ttyusupov added a commit that referenced this issue Apr 13, 2020
Summary:
- Added SplitTablet RPC support into yb-master.
- Added SplitTablet RPC support into yb-admin, for now allows to specify tablet id to split and computes split point as the middle of tablet's partition range.
- Implemented `CatalogManager::SplitTablet` logic for hash partitioning.
- Reworked tablet-split-itest to use and test `CatalogManager::SplitTablet`
- SysTabletsEntryPB: added split_parent_tablet_id and split_depth field to support post-split tablets registration on master-side.

Test Plan:
1) `ybd --cxx-test tablet-split-itest`
2) Using local cluster and yb-admin:
```
./bin/yb-ctl create

java -jar ~/code/yb-sample-apps/target/yb-sample-apps.jar --workload CassandraBatchKeyValue --nodes 127.0.0.1:9042 --num_threads_read 0 --num_threads_write 4 --nouuid --num_unique_keys 1000000 --num_writes 1000000

./build/latest/bin/yb-admin list_tablets ybdemo_keyspace cassandrakeyvalue
./build/latest/bin/yb-admin split_tablet <tablet_id_to_split>
```
Check http://127.0.0.1:9000/tablets

Reviewers: mikhail, bogdan, sergei

Reviewed By: bogdan, sergei

Subscribers: bogdan

Differential Revision: https://phabricator.dev.yugabyte.com/D8253
@ttyusupov ttyusupov added the kind/enhancement This is an enhancement of an existing feature label Jun 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement This is an enhancement of an existing feature
Projects
None yet
Development

No branches or pull requests

1 participant