-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
storage: fix split / split-queue race
Fix a race during splits where the right-hand side of a split was temporarily removed from the Store.mu.replicas map when the split was being committed, opening a tiny window where that replica could be added to a queue (e.g. the split queue) but not be present when it came time to process the replica. The fix is to simply not perform this temporary removal from Store.mu.replicas and instead adjust adding a replica to Store.mu.replicas to be successful if the replica either doesn't exist in the map, or does exist and is the same object (pointer equality). Fixes #30660 Fixes #29144 Release note: None
- Loading branch information
1 parent
5058787
commit d3b0e73
Showing
3 changed files
with
46 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