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 A1F1A74173; Fri, 6 Aug 2021 02:29:20 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org A1F1A74173 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1628206160; bh=sYX0e71BLoNwTv2FF86x0diiWeLbNChGdCSLixAnuaI=; 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=REyMXuvSn6MeIJhNVihkKDXzBkCgqOJ+5AKtL3+mL22dRI2Y8NrpSMba8kfbpHaDq yz4wcTUDY3HmSoHyzyOJxEFAPWlrxbf6dGSZGyNgTWKiP5i+ig9f2rHY3ryZ2hzUmO 9ELodY/SmneeTrYIg9xhLcUEWS+iXEgTCGmjJoLA= Received: from smtp52.i.mail.ru (smtp52.i.mail.ru [94.100.177.112]) (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 D3E0A74173 for ; Fri, 6 Aug 2021 02:29:18 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org D3E0A74173 Received: by smtp52.i.mail.ru with esmtpa (envelope-from ) id 1mBmne-0006c8-Al; Fri, 06 Aug 2021 02:29:18 +0300 To: Cyrill Gorcunov , tml References: <20210804190752.488147-1-gorcunov@gmail.com> Message-ID: <98a9dd41-fc44-be03-af52-e1128120f689@tarantool.org> Date: Fri, 6 Aug 2021 01:29:17 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: <20210804190752.488147-1-gorcunov@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-7564579A: 646B95376F6C166E X-77F55803: 4F1203BC0FB41BD92087353F0EC44DD910164DC12A5633065676A9727AC27C74182A05F538085040A9E5BA9D730E3820195D4495309B2BDB94532625A7FC4ECC11470B6ED19F75F0 X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE771540F9ECFC94C4BEA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F79006371DF52D98DC3592C48638F802B75D45FF36EB9D2243A4F8B5A6FCA7DBDB1FC311F39EFFDF887939037866D6147AF826D8F203361CB00930C42492AAB122293900117882F4460429724CE54428C33FAD305F5C1EE8F4F765FCF1175FABE1C0F9B6A471835C12D1D9774AD6D5ED66289B52BA9C0B312567BB23117882F446042972877693876707352033AC447995A7AD18E5D25F19253116ADD2E47CDBA5A96583BA9C0B312567BB2376E601842F6C81A19E625A9149C048EE41BF15D38FB6CB3AC3123C4324A5CF10D8FC6C240DEA7642DBF02ECDB25306B2B78CF848AE20165D0A6AB1C7CE11FEE3AD0E433DBF1FBFA3AD7EC71F1DB88427C4224003CC836476EA7A3FFF5B025636E2021AF6380DFAD1A18204E546F3947CB11811A4A51E3B096D1867E19FE1407959CC434672EE6371089D37D7C0E48F6C8AA50765F7900637C970FD8DF19C51D2EFF80C71ABB335746BA297DBC24807EABDAD6C7F3747799A X-B7AD71C0: AC4F5C86D027EB782CDD5689AFBDA7A213B5FB47DCBC3458F0AFF96BAACF4158235E5A14AD4A4A4625E192CAD1D9E79D94463893BF8742D0437E0AC97F61F282 X-C1DE0DAB: 0D63561A33F958A54CB2783895492D4AFD3A3D5045C24EE88384AE32E321BC24D59269BC5F550898D99A6476B3ADF6B47008B74DF8BB9EF7333BD3B22AA88B938A852937E12ACA7501A9DF589746230F410CA545F18667F91A7EA1CDA0B5A7A0 X-C8649E89: 4E36BF7865823D7055A7F0CF078B5EC49A30900B95165D34128DEC38EFF4BE5AA14E27D809ECF30F8CCDBA18D3F56C4EF12D5DBE020F704CA1B2E7F661278FEB1D7E09C32AA3244CE939427D004ECB94FA7C5949B9C1C8E3250262A5EE9971B0729B2BEF169E0186 X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojFhlvmGwdUwT52ox1t55Tjg== X-Mailru-Sender: 1F3202E75A95DDEFC23907419AE0C7D7E2D47FCFE06472A78B0448D59749E9093CD3409FA065070107784C02288277CA03E0582D3806FB6A5317862B1921BA260ED6CFD6382C13A6112434F685709FCF0DA7A0AF5A3A8387 X-Mras: Ok Subject: Re: [Tarantool-patches] [PATCH v10 0/4] limbo: implement packets filtering 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" Hi! Thanks for the patchset! On top of the branch I tried the test I pasted in the ticket's description. I see the connection now breaks in one direction. But the new leader still follows the old leader somewhy. This is the old leader (id = 1) which did ROLLBACK: tarantool> box.info.replication --- - 1: id: 1 uuid: bf51f188-cb5d-4471-85ee-2a2be4f24052 lsn: 8 2: id: 2 uuid: ff1d81af-fae2-4e29-989a-4eb20f06eeb5 lsn: 0 upstream: peer: localhost:3314 lag: 4.9944338798523 status: stopped idle: 10.290937999991 message: Replication does not support forward promote LSN (empty limbo, split brain) downstream: status: follow idle: 0.65130299999146 vclock: {2: 1, 1: 8} lag: 14.389625072479 ... This is the new leader (id = 2) which did PROMOTE on the same data: tarantool> box.info.replication --- - 1: id: 1 uuid: bf51f188-cb5d-4471-85ee-2a2be4f24052 lsn: 8 upstream: status: follow idle: 0.46603999999934 peer: localhost:3313 lag: 0.00013971328735352 downstream: status: stopped message: unexpected EOF when reading from socket, called on fd 18, aka [::1]:3314 system_message: Broken pipe 2: id: 2 uuid: ff1d81af-fae2-4e29-989a-4eb20f06eeb5 lsn: 1 ... Why is there still downstream from id 1 to id 2? The new leader should have received the ROLLBACK which it should have seen can't be properly applied. Why didn't it cut the connection?