From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtpng1.m.smailru.net (smtpng1.m.smailru.net [94.100.181.251]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 3BDA6445324 for ; Thu, 6 Aug 2020 01:15:51 +0300 (MSK) From: Vladislav Shpilevoy Date: Thu, 6 Aug 2020 00:15:47 +0200 Message-Id: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH v2 vshard 0/2] storage: allow replica to boot before master List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: tarantool-patches@dev.tarantool.org, yaroslav.dynnikov@tarantool.org, olegrok@tarantool.org 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)