-
Notifications
You must be signed in to change notification settings - Fork 721
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add filter and batch handlng when loading keyspace groups meta from s…
…torage Fix root path for LoadTimestamp/SaveTimestamp Separate initial keyspace groups assignment loading from onlne dynamical change. Implement loadKeyspaceGroup() which also returns revision. Changed the timeout mechanism for watching the progress of loading and initialize the keyspace groups assignment Watch keyspace group membership/distribution meta change and dynamically apply the change Add TestLoadInitialKeyspaceGroupsAssignment and TestExtractKeyspaceGroupIDFromPath Add test cases for loading keyspace group assignment Add retry if there is temporary failure when loading keyspace group assignment from etcd Removed the mutex. The original purpose was to prevent concurrent addition/removal of keyspace groups during critical periods such as service shutdown and online keyspace group, while the former requires snapshot isolation to ensure all keyspace groups are properly closed and no new keyspace group is added/initialized after that. Now we have ensured that's case by always cancelling the watch loop before closing keyspace groups in Close(). Added unitest for watching and dynamically applying keyspace group meta changes Signed-off-by: Bin Shi <binshi.bing@gmail.com>
- Loading branch information
1 parent
9aa3e97
commit de484bc
Showing
15 changed files
with
974 additions
and
114 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
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
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
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
Oops, something went wrong.