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 192AC6EC40; Sun, 6 Jun 2021 20:06:59 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 192AC6EC40 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1622999219; bh=OyB7suguGz9QKiJEcF3rJQvwkg8QVP1l25hw3KsEMMM=; h=To:References:Date:In-Reply-To:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=iRg4kFKhkKpTOJVK2I9ZjZ9qejOQd14hVlj/ZlVnMuKYv4HJoJ6LHwzTkmqT2+u/f FwIbfFnJVRzeDVrzABepFp2YQOYTL9PI7HjwYPT/hq6nEHeVlvaqjXZvBd/iTfe885 9VRge26D/NjeZMsbNeBp6+OmqNrcT8X2J1USGyfE= 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 5F8AE6EC40 for ; Sun, 6 Jun 2021 20:06:58 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 5F8AE6EC40 Received: by smtpng1.m.smailru.net with esmtpa (envelope-from ) id 1lpwEj-0005A9-Jq; Sun, 06 Jun 2021 20:06:58 +0300 To: tarantool-patches@dev.tarantool.org, gorcunov@gmail.com, sergepetrenko@tarantool.org References: Message-ID: Date: Sun, 6 Jun 2021 19:06:56 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-7564579A: B8F34718100C35BD X-77F55803: 4F1203BC0FB41BD9D5B0DA836B685C549A9F97C297FFF2C725C7934AD8E7B4B9182A05F538085040762952FC9E7859C0D6A92122615A49FC2E1F2936099C183660D3861FFD44AC21 X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE7081BBE264C6D7F42EA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F7900637B43005D9966BC2348638F802B75D45FF36EB9D2243A4F8B5A6FCA7DBDB1FC311F39EFFDF887939037866D6147AF826D892C2B72110CEAF68715E1985639E17A2117882F4460429724CE54428C33FAD305F5C1EE8F4F765FCF1175FABE1C0F9B6A471835C12D1D9774AD6D5ED66289B52BA9C0B312567BB23117882F44604297287769387670735201E561CDFBCA1751FF6B57BC7E6449061A352F6E88A58FB86F5D81C698A659EA7E827F84554CEF5019E625A9149C048EE9ECD01F8117BC8BEE2021AF6380DFAD18AA50765F790063735872C767BF85DA227C277FBC8AE2E8B08F9A42B2210255C75ECD9A6C639B01B4E70A05D1297E1BBCB5012B2E24CD356 X-C1DE0DAB: 0D63561A33F958A573170DAC8478F540BC0CFF485D68AA75DA0994974CAC7517D59269BC5F550898D99A6476B3ADF6B47008B74DF8BB9EF7333BD3B22AA88B938A852937E12ACA75FBC5FED0552DA851410CA545F18667F91A7EA1CDA0B5A7A0 X-C8649E89: 4E36BF7865823D7055A7F0CF078B5EC49A30900B95165D347130F804358653A673A8B30485089673FB3556536DE299DD65DBDF299AF9A3719E4C3F5811F59F0E1D7E09C32AA3244C114161D3857CDEB7E3FCCAE14F7E9302435BF7150578642FFACE5A9C96DEB163 X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojtoSVbEA8p9CicjlV7asNHg== X-Mailru-Sender: 689FA8AB762F73936BC43F508A06382252E7CCFE9F2706BEB999919E85E83BF13841015FED1DE5223CC9A89AB576DD93FB559BB5D741EB963CF37A108A312F5C27E8A8C3839CE0E267EA787935ED9F1B X-Mras: Ok Subject: Re: [Tarantool-patches] [PATCH 6/6] replication: prefer to join from booted replicas 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: Vladislav Shpilevoy via Tarantool-patches Reply-To: Vladislav Shpilevoy Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" I added the issue description to the test: diff --git a/test/replication/gh-5613-bootstrap-prefer-booted.test.lua b/test/replication/gh-5613-bootstrap-prefer-booted.test.lua index d3c1c1189..4dfc39175 100644 --- a/test/replication/gh-5613-bootstrap-prefer-booted.test.lua +++ b/test/replication/gh-5613-bootstrap-prefer-booted.test.lua @@ -1,5 +1,13 @@ test_run = require('test_run').new() +-- +-- gh-5613: when a new replica is joined to a cluster, it must prefer +-- bootstrapped join sources over non-bootstrapped ones, including self. Even +-- if all the bootstrapped ones are read-only. Otherwise the node might have +-- decided to bootstrap a new cluster on its own and won't be able to join the +-- existing one forever. +--