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 AFB32711B5; Wed, 27 Oct 2021 10:21:21 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org AFB32711B5 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1635319281; bh=xK4fop68wsKgMt1eAgOT4HNntdAOylz+Jrb6PVUEbjI=; h=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=Z4m0Dz1oOOcdtUXJAB47VReExIXof0AIagMpFugYG74wNjXvpWuKGKiP3+ClMYNGQ KG198sXWNeijEJ+8szufzAG3MBPz5Kh+qiB/bLmnRG+KHrKBUHTAqUl3eNREoNY75U 6rTmAmb5NYrO+9vxsxsDxlBGRNrw3PESJxcbyILU= Received: from smtp59.i.mail.ru (smtp59.i.mail.ru [217.69.128.39]) (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 349A970C8D for ; Wed, 27 Oct 2021 10:20:51 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 349A970C8D Received: by smtp59.i.mail.ru with esmtpa (envelope-from ) id 1mfdEw-00017C-33; Wed, 27 Oct 2021 10:20:50 +0300 To: kyukhin@tarantool.org, v.ioffe@tarantool.org Date: Wed, 27 Oct 2021 10:20:43 +0300 Message-Id: <2f35b493b30fe0ca0881deba510acbbc9df2b766.1635318768.git.sergepetrenko@tarantool.org> X-Mailer: git-send-email 2.30.1 (Apple Git-130) In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-7564579A: 646B95376F6C166E X-77F55803: 4F1203BC0FB41BD9D1D35DBD2D15487E95B7EC5918E2245194B7D4D1C7EDE589182A05F538085040E6C7CF58FA61515EA9C5BCBFE950C9DDAD9A8B52335791988FF6E3BFA98B5E89 X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE7EC0B1A4921CAE631EA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F79006376D321F80F15DC2F18638F802B75D45FF36EB9D2243A4F8B5A6FCA7DBDB1FC311F39EFFDF887939037866D6147AF826D8FC55066390E6D7250201E6E3DA7B565F117882F4460429724CE54428C33FAD305F5C1EE8F4F765FC5F0C88D684269EDEA471835C12D1D9774AD6D5ED66289B52BA9C0B312567BB23117882F4460429728776938767073520B1593CA6EC85F86D618001F51B5FD3F9D2E47CDBA5A96583BA9C0B312567BB2376E601842F6C81A19E625A9149C048EE0A3850AC1BE2E735E0F2381F647739FAD8FC6C240DEA7642DBF02ECDB25306B2B78CF848AE20165D0A6AB1C7CE11FEE324F796C710B8583CBA3038C0950A5D36B5C8C57E37DE458B0BC6067A898B09E46D1867E19FE14079C09775C1D3CA48CF3D321E7403792E342EB15956EA79C166A417C69337E82CC275ECD9A6C639B01B78DA827A17800CE7D699F3A2029486C7731C566533BA786AA5CC5B56E945C8DA X-B7AD71C0: AC4F5C86D027EB782CDD5689AFBDA7A213B5FB47DCBC3458834459D11680B50566181E86314CCAC2A7627F2A65545C38 X-C1DE0DAB: C20DE7B7AB408E4181F030C43753B8186998911F362727C414F749A5E30D975C2749EEF4D85F8CCA97E02E3FD18AA137B865F1D2065215BF9C2B6934AE262D3EE7EAB7254005DCED114C52B35DBB74F4E7EAB7254005DCEDA5DF9383870C0FED1E0A4E2319210D9B64D260DF9561598FCFFBF5018520E3988D1F0E447259586B93EDB24507CE13387DFF0A840B692CF8 X-C8649E89: 4E36BF7865823D7055A7F0CF078B5EC49A30900B95165D345C110A855FC0999918CDAED510BE08867E5D619AAF20D11185B92DFEB2D1F6FD2AA00F0409C66CC41D7E09C32AA3244C642FA50870CD18DB1929C73503A7069A6C24832127668422927AC6DF5659F194 X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojbL9S8ysBdXiJJDvY4Pk42pL7PMDxTbkW X-Mailru-Sender: 11C2EC085EDE56FA38FD4C59F7EFE4078398A69600D54101F39B6BBD92D22FD11B8CBA2C858B1D716BB2E709EA627F343C7DDD459B58856F0E45BC603594F5A135B915D4279FF0579437F6177E88F7363CDA0F3B3F5B9367 X-Mras: Ok Subject: [Tarantool-patches] [PATCH v3 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: 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" 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. 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(-) diff --git a/src/box/box.cc b/src/box/box.cc index 20361db3a..b1154affa 100644 --- a/src/box/box.cc +++ b/src/box/box.cc @@ -1416,7 +1416,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. -- 2.30.1 (Apple Git-130)