-
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.
[WIP] storage: detect snapshots intended for a different replica ID
Before this change we'd apply a snapshot over an existing initialized replica regardless of the replica ID its descriptor contained for the recipient store. This logic is problematic if the current store was removed and re-added and in the meantime the range subsumed one or more other ranges. This is specifically problematic because the code assumes in maybeAcquireSnapshotMergeLock that if the range descriptor grows then there will be collocated replicas to subsume. This invariant doesn't hold if the replica was removed and then added back after the range is modified. Release note: None
- Loading branch information
Showing
2 changed files
with
33 additions
and
6 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