[Tarantool-patches] [PATCH v2 0/5] Split vote and bugs
Vladislav Shpilevoy
v.shpilevoy at tarantool.org
Thu Jan 20 03:43:42 MSK 2022
Split vote handling in Raft, its usage in storage, and 2 bug fixes found while
working on this.
Changes in v2:
- dropped ev_timer.at usage;
- disabled split-vote detection for cluster < quorum;
- disabled split-vote for vote count > cluster;
- re-checked split vote after WAL write;
- re-checked split vote on quorum change.
Branch: http://github.com/tarantool/tarantool/tree/gerold103/gh-5285-raft-split-vote
Issue: https://github.com/tarantool/tarantool/issues/5285
Vladislav Shpilevoy (5):
raft: fix crash on election_timeout reconfig
raft: fix ev_timer.at incorrect usage
raft: track all votes, even not own
raft: introduce split vote detection
election: activate raft split vote handling
.../unreleased/election-timeout-cfg-crash.md | 5 +
src/box/raft.c | 4 +-
src/lib/fakesys/fakeev.c | 10 +-
src/lib/raft/raft.c | 222 ++++++++--
src/lib/raft/raft.h | 32 +-
.../election_split_vote_test.lua | 92 ++++
test/unit/raft.c | 393 +++++++++++++++++-
test/unit/raft.result | 87 +++-
test/unit/raft_test_utils.c | 12 +
test/unit/raft_test_utils.h | 5 +
10 files changed, 803 insertions(+), 59 deletions(-)
create mode 100644 changelogs/unreleased/election-timeout-cfg-crash.md
create mode 100644 test/replication-luatest/election_split_vote_test.lua
--
2.24.3 (Apple Git-128)
More information about the Tarantool-patches
mailing list