Tarantool development patches archive
 help / color / mirror / Atom feed
* [Tarantool-patches] [PATCH v2 0/5] Split vote and bugs
@ 2022-01-20  0:43 Vladislav Shpilevoy via Tarantool-patches
  2022-01-20  0:43 ` [Tarantool-patches] [PATCH v2 1/5] raft: fix crash on election_timeout reconfig Vladislav Shpilevoy via Tarantool-patches
                   ` (6 more replies)
  0 siblings, 7 replies; 11+ messages in thread
From: Vladislav Shpilevoy via Tarantool-patches @ 2022-01-20  0:43 UTC (permalink / raw)
  To: tarantool-patches, sergepetrenko

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)


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2022-01-25 22:51 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-20  0:43 [Tarantool-patches] [PATCH v2 0/5] Split vote and bugs Vladislav Shpilevoy via Tarantool-patches
2022-01-20  0:43 ` [Tarantool-patches] [PATCH v2 1/5] raft: fix crash on election_timeout reconfig Vladislav Shpilevoy via Tarantool-patches
2022-01-20  0:43 ` [Tarantool-patches] [PATCH v2 2/5] raft: fix ev_timer.at incorrect usage Vladislav Shpilevoy via Tarantool-patches
2022-01-20  0:43 ` [Tarantool-patches] [PATCH v2 3/5] raft: track all votes, even not own Vladislav Shpilevoy via Tarantool-patches
2022-01-20  0:43 ` [Tarantool-patches] [PATCH v2 4/5] raft: introduce split vote detection Vladislav Shpilevoy via Tarantool-patches
2022-01-20 13:22   ` Serge Petrenko via Tarantool-patches
2022-01-20 23:02     ` Vladislav Shpilevoy via Tarantool-patches
2022-01-25 10:17       ` Serge Petrenko via Tarantool-patches
2022-01-20  0:43 ` [Tarantool-patches] [PATCH v2 5/5] election: activate raft split vote handling Vladislav Shpilevoy via Tarantool-patches
2022-01-25 10:18 ` [Tarantool-patches] [PATCH v2 0/5] Split vote and bugs Serge Petrenko via Tarantool-patches
2022-01-25 22:51 ` Vladislav Shpilevoy via Tarantool-patches

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox