-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
General raft improvements under heavy corruption.
Do not exit candidate state in place when stepping down, would cause double vote requests. When truncating our WAL make sure to adjust commit and applied as needed. On a miss where the index is less than ours, if we can not find the entry reset our state. For a vote, if last processed term is higher than ours always agree if no vote has been cast. If terms are equal make sure the requestor's index is at least as high as ours. If we decide not to vote for someone, and we have not voted and we are a better fit, move forward with a campaign. Signed-off-by: Derek Collison <derek@nats.io>
- Loading branch information
1 parent
4e3b983
commit c586014
Showing
1 changed file
with
26 additions
and
20 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