etcd/raft/raftpb
Tobias Schottdorf 37c7e4d1d8 raft: fix auto-transitioning out of joint config
The code doing so was undertested and buggy: it would launch multiple
attempts to transition out when the conf change was not the last element
in the log.

This commit fixes the problem and adds a regression test. It also
reworks the code to handle a former untested edge case, in which the
auto-transition append is refused. This can't happen any more with the
current version of the code because this proposal has size zero and is
special cased in increaseUncommittedSize. Last but not least, the
auto-leave proposal now also bumps pendingConfIndex, which was not done
previously due to an oversight.
2020-02-25 12:35:51 +01:00
..
confchange.go raft: fix auto-transitioning out of joint config 2020-02-25 12:35:51 +01:00
confstate.go raft: fix restoring joint configurations 2019-08-09 19:28:43 +02:00
confstate_test.go raft: fix restoring joint configurations 2019-08-09 19:28:43 +02:00
raft.pb.go raftpb: clean up naming in ConfChange 2019-07-23 10:40:03 +02:00
raft.proto raftpb: clean up naming in ConfChange 2019-07-23 10:40:03 +02:00