From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from [87.239.111.99] (localhost [127.0.0.1]) by dev.tarantool.org (Postfix) with ESMTP id 026ED714B2; Tue, 5 Oct 2021 16:18:22 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 026ED714B2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1633439902; bh=bz0LEGgSaduVMMTXJPzsEg2jamWhgPtB3DjFsVdWHQg=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=ywWVGvQ49SvUvmK0Fm5wnd+inC9EXuShfarVDHdpf4lSUpnszcCi7nE2quwUQB2Cp mpiYUzLCtOFGX43UTuWUnZ/tn45UZbSSa7gFq02VVCdLYRSTfVF2oBBcANbF3KpwEw zv9mIxM9fZLuUoXlTm6fgedqKcDREwk+00xrnv8w= Received: from smtp61.i.mail.ru (smtp61.i.mail.ru [217.69.128.41]) (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 BBA9C714AA for ; Tue, 5 Oct 2021 16:18:20 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org BBA9C714AA Received: by smtp61.i.mail.ru with esmtpa (envelope-from ) id 1mXkKp-0003R2-SX; Tue, 05 Oct 2021 16:18:20 +0300 To: sergos@tarantool.org Date: Tue, 5 Oct 2021 16:18:06 +0300 Message-Id: X-Mailer: git-send-email 2.30.1 (Apple Git-130) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-7564579A: EEAE043A70213CC8 X-77F55803: 4F1203BC0FB41BD9064ADF4728AA0EE950704E1C1E1FED60C49BF516B31B232E182A05F538085040D8FEEAC536EEC8C2259DCB27380CA70B7B54E65814AFC0A81413E42DA970876A X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE7A3DED2DACB82E709C2099A533E45F2D0395957E7521B51C2CFCAF695D4D8E9FCEA1F7E6F0F101C6778DA827A17800CE737BB76880A4CA9A4EA1F7E6F0F101C6723150C8DA25C47586E58E00D9D99D84E1BDDB23E98D2D38BBCA57AF85F7723F2FCEF8398A450BFDB52A0F1FACDA59C04CC7F00164DA146DAFE8445B8C89999728AA50765F7900637E603D20A273AEC4F389733CBF5DBD5E9C8A9BA7A39EFB766F5D81C698A659EA7CC7F00164DA146DA9985D098DBDEAEC86089696B24BB1D19F6B57BC7E6449061A352F6E88A58FB86F5D81C698A659EA7E827F84554CEF5019E625A9149C048EE9ECD01F8117BC8BEE2021AF6380DFAD18AA50765F790063735872C767BF85DA227C277FBC8AE2E8B569F1129A2C6445075ECD9A6C639B01B4E70A05D1297E1BBCB5012B2E24CD356 X-C1DE0DAB: C20DE7B7AB408E4181F030C43753B8186998911F362727C414F749A5E30D975C80CE368667DD8FDE34621D30B7F35D571AE7F633890BE8729C2B6934AE262D3EE7EAB7254005DCED556CBE7F905700A49510FB958DCE06DB6ED91DBE5ABE359A805C47957401F4811B2EFE7B39F7738393EDB24507CE13387DFF0A840B692CF8 X-C8649E89: 4E36BF7865823D7055A7F0CF078B5EC49A30900B95165D346F44602F3B4946345C7A7877A84B3ADB158CA533D2A74181CD20B7360984E73731E2BD6A11AC61061D7E09C32AA3244CDFF1A22BEA54B0A0AC84090451DD746C30452B15D76AEC14FACE5A9C96DEB163 X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojhAh8SZXECpDODc4qPEDAzg== X-Mailru-Sender: 3B9A0136629DC9125D61937A2360A4463A3AD4DC18348569A9167CE1A2793D2FE9E482D72192AFA4424AE0EB1F3D1D21E2978F233C3FAE6EE63DB1732555E4A8EE80603BA4A5B0BC112434F685709FCF0DA7A0AF5A3A8387 X-Mras: Ok Subject: [Tarantool-patches] [PATCH v2 0/2] replication: fix reconnect on box.cfg.replication change X-BeenThere: tarantool-patches@dev.tarantool.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Serge Petrenko via Tarantool-patches Reply-To: Serge Petrenko Cc: tarantool-patches@dev.tarantool.org Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" Changes in v2: - review fixes as per review from Vlad https://github.com/tarantool/tarantool/issues/4669 https://github.com/tarantool/tarantool/tree/sp/gh-4669-replication-reconnect Serge Petrenko (2): replicaiton: make anon replica connect to quorum upon reconfiguration replication: fix replica disconnect upon reconfiguration .../gh-4669-applier-reconfig-reconnect.md | 5 ++ src/box/box.cc | 31 ++++++--- src/box/replication.cc | 41 ++++++++---- src/box/replication.h | 4 +- test/instance_files/base_instance.lua | 3 +- test/instance_files/replica.lua | 17 +++++ test/luatest_helpers/server.lua | 65 +++++++++++++++++++ .../gh_4669_applier_reconnect_test.lua | 40 ++++++++++++ 8 files changed, 184 insertions(+), 22 deletions(-) create mode 100644 changelogs/unreleased/gh-4669-applier-reconfig-reconnect.md create mode 100755 test/instance_files/replica.lua create mode 100644 test/replication-luatest/gh_4669_applier_reconnect_test.lua -- 2.30.1 (Apple Git-130)