[PATCH 0/2] Do not enter orphan if replica is re-bootstrapping
Vladimir Davydov
vdavydov.dev at gmail.com
Thu May 24 21:00:26 MSK 2018
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
More information about the Tarantool-patches
mailing list