raft: Implement the PreVote RPC described in thesis section 9.6
This prevents disruption when a node that has been partitioned away rejoins the cluster. Fixes #6522
This commit is contained in:
@ -93,6 +93,8 @@ func TestIsLocalMsg(t *testing.T) {
|
||||
{pb.MsgTimeoutNow, false},
|
||||
{pb.MsgReadIndex, false},
|
||||
{pb.MsgReadIndexResp, false},
|
||||
{pb.MsgPreVote, false},
|
||||
{pb.MsgPreVoteResp, false},
|
||||
}
|
||||
|
||||
for i, tt := range tests {
|
||||
|
Reference in New Issue
Block a user