raft-rs
raft-rs copied to clipboard
Don't campaign anymore if quorum rejects vote for log gap
Apparently, if a peer's votes get rejected by quorum for log gap, then the peer can't become leader anymore by simply retry. So we can disable campaign for these peers until a leader is elected.
Maybe related to #14.
PreVote can fix this problem?
Yes. PreVote is an optional configuration, which should not be counted on.