Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pre-voting adds robustness to the leadership elections. This is a breaking change and must be explicitly enabled. A Follower will only initiate an election if it has received a quorum of positive pre-votes from other servers. A positive pre-vote will only be returned from a server if that server is itself asking for pre-votes. Therefore an election will be triggered not by one server timing out, but by a majority of servers timing out. This commit introduces a visitor pattern for RaftMessages used by RaftMessageHandlers and RaftMessageEncoder.
- Loading branch information
1 parent
2b75613
commit 91c4bb7
Showing
26 changed files
with
1,699 additions
and
251 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
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
Oops, something went wrong.