-
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.
loq: clear LeadEpoch when re-writing the RangeDescriptor
LoQ tool is used when we have some ranges that lost quorum. It removes some replicas from the RangeDescriptor. If the fortified leader is removed from the RangeDescriptor, SupportFor() will return epoch=0. This will fire an assertion since supportFor epochs should never regress. This commit changes the LoQ behaviour where it resets the LeadEpoch when rewriting the ReplicaDescriptor. Fixes: #136908 Release note: None
- Loading branch information
1 parent
4b94ccb
commit 4bd1fbc
Showing
2 changed files
with
14 additions
and
1 deletion.
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