From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp51.i.mail.ru (smtp51.i.mail.ru [94.100.177.111]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id EA218431780 for ; Wed, 26 Aug 2020 10:52:50 +0300 (MSK) From: Serge Petrenko Date: Wed, 26 Aug 2020 10:52:32 +0300 Message-Id: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [RAFT 00/10] raft implementation List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: v.shpilevoy@tarantool.org, gorcunov@gmail.com, sergos@tarantool.org Cc: tarantool-patches@dev.tarantool.org From: sergepetrenko The patchset contains current part of raft implementation: persistent raft state and raft status messages broadcasting together with some follow-up fixes. The raft state machine still has to be implemented. Vladislav Shpilevoy (9): raft: introduce persistent raft state [tosquash] raft: return raft_request to xrow [tosquash] raft: introduce IPROTO_RAFT_VCLOCK [tosquash] xrow: refactor raft request codec [tosquash] raft: don't fill raft_request manually [tosquash] raft: rename curr_leader to leader [tosquash] raft: rename raft_process to raft_process_recovery [tosquash] applier: handler error at raft row appliance [tosquash] relay: move raft broadcast details into relay sergepetrenko (1): raft: relay status updates to followers src/box/CMakeLists.txt | 1 + src/box/applier.cc | 35 ++++++- src/box/box.cc | 23 ++++- src/box/iproto_constants.h | 15 +++ src/box/lua/misc.cc | 35 +++++++ src/box/memtx_engine.c | 40 ++++++++ src/box/raft.c | 181 +++++++++++++++++++++++++++++++++++++ src/box/raft.h | 81 +++++++++++++++++ src/box/relay.cc | 62 ++++++++++++- src/box/relay.h | 9 ++ src/box/xrow.c | 113 +++++++++++++++++++++++ src/box/xrow.h | 15 +++ 12 files changed, 603 insertions(+), 7 deletions(-) create mode 100644 src/box/raft.c create mode 100644 src/box/raft.h -- 2.20.1 (Apple Git-117)