-
Notifications
You must be signed in to change notification settings - Fork 180
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
step down when leader removes itself
This patch causes a leader to step down when it removes itself from the group, becoming a follower in the current term. We don't want a removed leader to remain a leader: it no longer accepts proposals, so if it keeps heartbeating then the group is effectively stuck. Signed-off-by: Erik Grinaker <grinaker@cockroachlabs.com>
- Loading branch information
1 parent
a10cd45
commit 72d62a1
Showing
2 changed files
with
20 additions
and
80 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