-
Notifications
You must be signed in to change notification settings - Fork 24.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Two Snapshot Clone State Machine Bugs (#65042)
There are two separate but closely related bug fixes in this PR: 1. When two snapshot clones would initialize concurrently we could get into a state where one is in front of the other in the queue snapshots array but its shard states are in fact queued behind the other snapshot or clone. Tightly linked to this, snapshot cloning would not account for snapshot deletes when queueing shard snapshots which could lead to races where both delete and clone are running concurrently for a shard. 2. As a result of fixing the first issue and writing a test for it, it also became obvious that a finished delete was not properly accounted for when it comes to starting snapshot clones that could now queue behind a delete.
- Loading branch information
1 parent
fd675fd
commit 12d412e
Showing
5 changed files
with
210 additions
and
47 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
Oops, something went wrong.