forked from yugabyte/yugabyte-db
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[yugabyte#15027] docdb: Fix to compute the middle of middle key for t…
…ablet splitting Summary: ``` create table demo ( id int generated always as identity, data text, primary key(id asc) ); copy demo(data) from program 'base64 -w 16384 /dev/urandom | head -c 629145600'; ``` Creates and splits a single tablet into 412MB/190MB instead of ~2*300MB. This might happen because we take split key (midpoint) of the largest SST file and it just contains continuous range of IDs. To resolve such issues partially, we can take each SSTable file's mid-point, and do a weighted mid-point of mid-points. Each mid-point's weight could be based on the size of the SSTable maybe because we are doing size based splitting. Test Plan: Added an test in table_test yb_build.sh --gtest_filter TableTest.MiddleOfMiddleKey -n 100 -- -p 1 Reviewers: arybochkin, timur Reviewed By: timur Subscribers: ybase, arybochkin Differential Revision: https://phabricator.dev.yugabyte.com/D21214
- Loading branch information
Hemant Bhanawat
authored and
jayant07-yb
committed
Dec 7, 2022
1 parent
5120c88
commit 26a07a4
Showing
3 changed files
with
99 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters