Tarantool development patches archive
 help / color / mirror / Atom feed
* [PATCH 0/2] Do not enter orphan if replica is re-bootstrapping
@ 2018-05-24 18:00 Vladimir Davydov
  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
  0 siblings, 2 replies; 3+ messages in thread
From: Vladimir Davydov @ 2018-05-24 18:00 UTC (permalink / raw)
  To: kostja; +Cc: tarantool-patches

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

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

end of thread, other threads:[~2018-05-24 18:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-24 18:00 [PATCH 0/2] Do not enter orphan if replica is re-bootstrapping Vladimir Davydov
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

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