forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
raft: do not de-fortify ourselves incorrectly
Typically, we perform term comparisons up top in Step. If a message affects a term that's older than the term known to a raft peer it's discarded. When a raft peer de-fortifies itself, it doesn't send itself a self-addressed message. As a result, we need to roll out these term checks ourselves -- otherwise, as we saw in the assertion failure in the linked issue, we could end up trying to incorrectly de-fortify a newer fortified leader. Fixes cockroachdb#132797 Release note: None
- Loading branch information
1 parent
806e1c5
commit 432dd97
Showing
1 changed file
with
31 additions
and
2 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