-
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.
kvserver: assert that lease applied index of a subsumed range cannot …
…be bumped The fix to #44878 ensures that the follower replicas of a subsumed range cannot activate closed timestamps broadcast by it until the merge aborts (note that if merge commits, the subsumed range is destroyed). The implicit assumption we relied on is that the lease applied index of a range is never bumped while it is subsumed. This commit adds an assertion to make sure this invariant is always upheld. It also adds a test that acts as a sanity check to ensure that, if the merge is aborted, future and pending requests are allowed to go through just fine. Release note: None
- Loading branch information
1 parent
86f49d0
commit 5f0b494
Showing
2 changed files
with
118 additions
and
0 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