-
-
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.
NRG: Don't switch to candidate when waiting for pending applies (#6056)
A follower could become candidate/leader before processing a snapshot. Based on timing the snapshot could enter into the apply queue, and before `n.PauseApply()` is called the follower could freely become leader and then fail processing the snapshot. When a snapshot is not successfully applied yet, block the follower from becoming candidate until the snapshot is processed. Signed-off-by: Maurice van Veen <[email protected]>
- Loading branch information
Showing
2 changed files
with
89 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