raft-rs icon indicating copy to clipboard operation
raft-rs copied to clipboard

Don't campaign anymore if quorum rejects vote for log gap

Open BusyJay opened this issue 7 years ago • 2 comments

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.

BusyJay avatar Jan 23 '18 09:01 BusyJay

PreVote can fix this problem?

siddontang avatar Jan 24 '18 03:01 siddontang

Yes. PreVote is an optional configuration, which should not be counted on.

BusyJay avatar Jan 24 '18 12:01 BusyJay