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 C0F22711A9; Tue, 12 Oct 2021 12:56:36 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org C0F22711A9 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1634032596; bh=OB4EKmEd5H792Et85E+XHGU97Wx5xl1wJxccMZVHcOU=; h=In-Reply-To:Date:Cc:References:To:Subject:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=Whz+Szu9CoAD9tiCYTMCvhzlD64QQMAx3WQBCIv5SqK86ZHwxLoQlSHqJV+3Zy51n BVv7emzCuXTU7bC99XPlm009ry36xgS3ArXKZHoaRFRGs5brGNxq/i0tqfbwlikboY nk8DnlpM/lgg6+Cr6Aso5X66HFyhRZ3vtEKICBrk= Received: from smtp42.i.mail.ru (smtp42.i.mail.ru [94.100.177.102]) (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 7A44B71190 for ; Tue, 12 Oct 2021 12:56:35 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 7A44B71190 Received: by smtp42.i.mail.ru with esmtpa (envelope-from ) id 1maEWQ-0003sw-TA; Tue, 12 Oct 2021 12:56:35 +0300 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) In-Reply-To: Date: Tue, 12 Oct 2021 12:56:33 +0300 Cc: tarantool-patches@dev.tarantool.org Content-Transfer-Encoding: quoted-printable Message-Id: <09E805A1-CB76-41B8-8A5C-E4660603520E@tarantool.org> References: To: Serge Petrenko X-Mailer: Apple Mail (2.3654.120.0.1.13) X-7564579A: B8F34718100C35BD X-77F55803: 4F1203BC0FB41BD922964B4BA091D9ACA40B14C71D5CC2AD98749C61A1F49F4C182A05F538085040B708AA6AB7BBBCDE96CEBF3614B456FA165069B4BF7C22F05BCB28951E745CDA X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE72AC9FB60380F23AEEA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F7900637B1850F7A782C2F9B8638F802B75D45FF36EB9D2243A4F8B5A6FCA7DBDB1FC311F39EFFDF887939037866D6147AF826D8A1CD6117599F4E037915524416C0F5C4117882F4460429724CE54428C33FAD305F5C1EE8F4F765FC3733B5EC72352B9FA471835C12D1D9774AD6D5ED66289B52BA9C0B312567BB23117882F44604297287769387670735201E561CDFBCA1751F618001F51B5FD3F9D2E47CDBA5A96583BA9C0B312567BB231DD303D21008E29813377AFFFEAFD269A417C69337E82CC2E827F84554CEF50127C277FBC8AE2E8BA83251EDC214901ED5E8D9A59859A8B642416645EBD45DC2089D37D7C0E48F6C5571747095F342E88FB05168BE4CE3AF X-C1DE0DAB: 0D63561A33F958A55A5E44164E0046937C49E214EEF4840BDBB71992F95ACC3BD59269BC5F550898D99A6476B3ADF6B47008B74DF8BB9EF7333BD3B22AA88B938A852937E12ACA752654937D1C607C78410CA545F18667F91A7EA1CDA0B5A7A0 X-C8649E89: 4E36BF7865823D7055A7F0CF078B5EC49A30900B95165D34D4E96E2A5B1100E009431804D5921995DD936AAF396896922B44802D811E392370203921897C63481D7E09C32AA3244CDA412D4E6FA1694F6FDBDB8DA2BC4230A90944CA99CF22E3729B2BEF169E0186 X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojtWOf/ZwQPGGS8twgXvVD2Q== X-Mailru-Sender: 3B9A0136629DC912F4AABCEFC589C81E046CA9C52D28DD5C748CF2B3D78670F38E6DFC531CDDAF1EAD07DD1419AC565FA614486B47F28B67C5E079CCF3B0523AED31B7EB2E253A9E112434F685709FCF0DA7A0AF5A3A8387 X-Mras: Ok Subject: Re: [Tarantool-patches] [PATCH v2 1/2] replicaiton: make anon replica connect to quorum upon reconfiguration 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: sergos via Tarantool-patches Reply-To: sergos Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" Hi!=20 This one looks unnecessary, since you rework it in second part. Sergos. > On 5 Oct 2021, at 16:18, Serge Petrenko = wrote: >=20 > Once an anonymous replica tries to register, it reconnects to every > other instance in its replication list in order to receive updated > ballots and choose someone to register on. >=20 > Make the instance wait until it connects to quorum before letting it > choose the node to register on. > --- > src/box/box.cc | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/src/box/box.cc b/src/box/box.cc > index 0b12b1328..219ffa38d 100644 > --- a/src/box/box.cc > +++ b/src/box/box.cc > @@ -1404,7 +1404,7 @@ box_set_replication_anon(void) > * them can register and others resend a > * non-anonymous subscribe. > */ > - box_sync_replication(false); > + box_sync_replication(true); > /* > * Wait until the master has registered this > * instance. > --=20 > 2.30.1 (Apple Git-130) >=20