raft: introduce Pre-Vote machinery
Support Pre-Vote in Raft: when a node knows, that some of the peers see the leader of the current term, it doesn't start elections. Even when it doesn't have a connection to the leader. Don't use the machinery yet: nodes never share info on whether they see the leader. Part-of #6654 NO_DOC=no user-visible changes NO_CHANGELOG=no user-visible changes
Showing
- src/lib/raft/raft.c 190 additions, 60 deletionssrc/lib/raft/raft.c
- src/lib/raft/raft.h 38 additions, 0 deletionssrc/lib/raft/raft.h
- src/lib/raft/raft_ev.c 6 additions, 0 deletionssrc/lib/raft/raft_ev.c
- src/lib/raft/raft_ev.h 4 additions, 0 deletionssrc/lib/raft/raft_ev.h
- test/unit/raft.c 296 additions, 1 deletiontest/unit/raft.c
- test/unit/raft.result 48 additions, 1 deletiontest/unit/raft.result
- test/unit/raft_test_utils.c 18 additions, 0 deletionstest/unit/raft_test_utils.c
- test/unit/raft_test_utils.h 8 additions, 0 deletionstest/unit/raft_test_utils.h
Loading
Please register or sign in to comment