From: Vladimir Davydov <vdavydov.dev@gmail.com> To: kostja@tarantool.org Cc: tarantool-patches@freelists.org Subject: [PATCH 0/2] Do not enter orphan if replica is re-bootstrapping Date: Thu, 24 May 2018 21:00:26 +0300 [thread overview] Message-ID: <cover.1527183256.git.vdavydov.dev@gmail.com> (raw) 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
next reply other threads:[~2018-05-24 18:00 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2018-05-24 18:00 Vladimir Davydov [this message] 2018-05-24 18:00 ` [PATCH 1/2] replication: fix log message in case of sync failure Vladimir Davydov 2018-05-24 18:00 ` [PATCH 2/2] replication: do not stop syncing if replicas are loading Vladimir Davydov
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=cover.1527183256.git.vdavydov.dev@gmail.com \ --to=vdavydov.dev@gmail.com \ --cc=kostja@tarantool.org \ --cc=tarantool-patches@freelists.org \ --subject='Re: [PATCH 0/2] Do not enter orphan if replica is re-bootstrapping' \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox