From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtpng2.m.smailru.net (smtpng2.m.smailru.net [94.100.179.3]) (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 1889E469719 for ; Sat, 7 Nov 2020 19:45:36 +0300 (MSK) From: Vladislav Shpilevoy Date: Sat, 7 Nov 2020 17:45:30 +0100 Message-Id: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH 0/2] Raft crash on re-enablence List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: tarantool-patches@dev.tarantool.org, sergepetrenko@tarantool.org, avtikhon@tarantool.org The patchset fixes 2 crashes related to Raft WAL write being in progress, when the state machine is restarted, and when it is configured to be a candidate with a known leader. Branch: http://github.com/tarantool/tarantool/tree/gerold103/gh-5506-raft-crash Issue: https://github.com/tarantool/tarantool/issues/5506 @ChangeLog * Fixed a couple of crashes on various tweaks of election mode (gh-5506). Vladislav Shpilevoy (2): raft: fix crash on sm restart during WAL write raft: fix crash on candidate cfg during WAL write src/box/raft.c | 23 ++- .../gh-5506-election-on-off.result | 140 ++++++++++++++++++ .../gh-5506-election-on-off.test.lua | 68 +++++++++ test/replication/suite.cfg | 1 + test/replication/suite.ini | 2 +- 5 files changed, 225 insertions(+), 9 deletions(-) create mode 100644 test/replication/gh-5506-election-on-off.result create mode 100644 test/replication/gh-5506-election-on-off.test.lua -- 2.21.1 (Apple Git-122.3)