[Tarantool-patches] [PATCH v2 vshard 0/2] storage: allow replica to boot before master

Vladislav Shpilevoy v.shpilevoy at tarantool.org
Thu Aug 6 01:15:47 MSK 2020


The patchset fixes a problem appearing in tarantool cartridge when
replica is configured before master and fails with an ugly error
without a serious reason for that.

As a prerequisite the reload evolution subsystem is fixed, because
it had a bug affecting the main commit. The bug didn't appear
earlier, because the evolution was never used for anything so far.

Changes in v2:
- The reload evolution fix is moved into a separate commit;
- Instance un-installs _bucket trigger when master is switched to replica.

Branch: http://github.com/tarantool/vshard/tree/gerold103/gh-237-boot-replica-first
Issue: https://github.com/tarantool/vshard/issues/237

Vladislav Shpilevoy (2):
  storage: fix reload applying migration twice
  storage: allow replica to boot before master

 test/lua_libs/storage_template.lua      |  55 +++++++++++-
 test/misc/reconfigure.result            |  33 +++++++
 test/misc/reconfigure.test.lua          |   9 ++
 test/reload_evolution/storage.result    |  10 +++
 test/reload_evolution/storage.test.lua  |   8 ++
 test/router/boot_replica_first.result   | 112 ++++++++++++++++++++++++
 test/router/boot_replica_first.test.lua |  42 +++++++++
 vshard/storage/init.lua                 |  21 ++++-
 vshard/storage/reload_evolution.lua     |  10 ++-
 9 files changed, 296 insertions(+), 4 deletions(-)
 create mode 100644 test/router/boot_replica_first.result
 create mode 100644 test/router/boot_replica_first.test.lua

-- 
2.21.1 (Apple Git-122.3)



More information about the Tarantool-patches mailing list