-
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.
[#11733] DST: PITR - Data race on enabling snapshot throttling by def…
…ault Summary: The snapshot coordinator periodically refreshes the value of the throttling. In this process, it queries the number of tservers and thus accesses the cluster config. If the cluster config is being written to during this refresh then there is a race as the config is unguarded currently. One scenario when this can happen is after a Restore when we load the sys catalog. We need to guard the `cluster_config_` with a lock to solve this as well as introduce error handling if the config is not found. Test Plan: ybd --cxx-test yb-admin-snapshot-schedule-test --gtest_filter YbAdminSnapshotScheduleTest.CatalogLoadRace Reviewers: sergei, bogdan Reviewed By: bogdan Subscribers: ybase Differential Revision: https://phabricator.dev.yugabyte.com/D15612
- Loading branch information
1 parent
4eeb5d4
commit 79e1f12
Showing
14 changed files
with
176 additions
and
106 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
Oops, something went wrong.