-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#6632] ybase: Add new flag for how many servers to wait for before t…
…he transactions table is created Summary: Currently in the catalog manager, we wait for just RF number of TS before creating the transaction status table. However, when we move to large clusters (> 24 nodes) then just the RF number of TS might not be enough to guarantee one Txn status tablet leader on every node. Support has been added to specify the number of TS to wait for before creating the transaction table. User can specify the flag "txn_table_wait_ts_count" for this purpose. The default value of this flag is RF. Test Plan: ./bin/yb-ctl create --master_flags "txn_table_wait_ts_count=3" --tserver_flags "txn_table_wait_ts_count=3" Verify that Transaction table hasn't been created despite RF being 1 ./bin/yb-ctl add_node --tserver_flags "txn_table_wait_ts_count=3" ./bin/yb-ctl add_node --tserver_flags "txn_table_wait_ts_count=3" Verify that Transaction table gets created Also, added a unit test in create-table-itest.cc that simulates the above sequence Reviewers: bogdan, rsami Reviewed By: bogdan, rsami Subscribers: zyu, ybase Differential Revision: https://phabricator.dev.yugabyte.com/D10258
- Loading branch information
Sanket Kedia
committed
Jan 20, 2021
1 parent
0612327
commit 2382568
Showing
3 changed files
with
52 additions
and
5 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