From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Vladimir Davydov Subject: [PATCH 0/2] Do not enter orphan if replica is re-bootstrapping Date: Thu, 24 May 2018 21:00:26 +0300 Message-Id: To: kostja@tarantool.org Cc: tarantool-patches@freelists.org List-ID: If replication quorum can't be formed, because some replicas are re-bootstrapping, box.cfg{} will return leaving the instance in orphan mode. This is wrong, because those replicas will be up and running soon. Let's take into account loading replicas while syncing a quorum. https://github.com/tarantool/tarantool/issues/3422 https://github.com/tarantool/tarantool/commits/gh-3422-replication-dont-stop-sync-if-replica-loading Vladimir Davydov (2): replication: fix log message in case of sync failure replication: do not stop syncing if replicas are loading src/box/replication.cc | 45 +++++++++++++++++++++++------------ src/box/replication.h | 10 ++++++++ test/replication/rebootstrap.lua | 26 ++++++++++++++++++++ test/replication/rebootstrap.result | 45 +++++++++++++++++++++++++++++++++++ test/replication/rebootstrap.test.lua | 21 ++++++++++++++++ test/replication/rebootstrap1.lua | 1 + test/replication/rebootstrap2.lua | 1 + test/replication/suite.cfg | 1 + 8 files changed, 135 insertions(+), 15 deletions(-) create mode 100644 test/replication/rebootstrap.lua create mode 100644 test/replication/rebootstrap.result create mode 100644 test/replication/rebootstrap.test.lua create mode 120000 test/replication/rebootstrap1.lua create mode 120000 test/replication/rebootstrap2.lua -- 2.11.0