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 CFED86EC5F; Sun, 18 Apr 2021 19:27:43 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org CFED86EC5F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1618763263; bh=jdESteavlumj7srAUanPrA4E6XEjRoPGF1ot9/QY6U0=; h=To:Cc:References:Date:In-Reply-To:Subject:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=GsxO5bADA9peYANZwy2yMHWwvkdqlAaK6gKfOwGrSCN2qtwAZZpiY6tbWPwKQSO23 SRjT4jqWeVz8fvy6IrN1z4VwEqGHUnyz6U5vBIWdj4KkqKHZ2MBlQ4HWelac/gQnk8 lNPwVewCzR/zWcwKn67GmmChZ/EQS1VTPrS2vt74= Received: from smtpng2.m.smailru.net (smtpng2.m.smailru.net [94.100.179.3]) (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 348F36EC5F for ; Sun, 18 Apr 2021 19:27:42 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 348F36EC5F Received: by smtpng2.m.smailru.net with esmtpa (envelope-from ) id 1lYAGr-0003VM-Ey; Sun, 18 Apr 2021 19:27:41 +0300 To: Serge Petrenko , gorcunov@gmail.com Cc: tarantool-patches@dev.tarantool.org References: Message-ID: <3161d468-6f98-802a-56a1-2955a891b4fa@tarantool.org> Date: Sun, 18 Apr 2021 18:27:40 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-7564579A: EEAE043A70213CC8 X-77F55803: 4F1203BC0FB41BD92FFCB8E6708E748013307ED7ECCBF4892260E197EB99ED8F182A05F5380850404BCB418B7D35D01070A8B117C576001F26A64728AE92C0E6CFCFCCCD21FC03F7 X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE7370DF012C2F9ACE3EA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F79006376F978168E59B07A5EA1F7E6F0F101C67CDEEF6D7F21E0D1D9295C2E9FA3191EE1B59CA4C82EFA6588B5DA8893ECDED8587A2B97F1A8854C4F6B57BC7E64490618DEB871D839B73339E8FC8737B5C22498424CA1AAF98A6958941B15DA834481FCF19DD082D7633A0EF3E4896CB9E6436389733CBF5DBD5E9D5E8D9A59859A8B68424CA1AAF98A6958941B15DA834481F9449624AB7ADAF372E808ACE2090B5E1725E5C173C3A84C3C5EA940A35A165FF2DBA43225CD8A89F83C798A30B85E16BA91E23F1B6B78B78B5C8C57E37DE458BEDA766A37F9254B7 X-C1DE0DAB: 0D63561A33F958A53F2873C801AADE37EDE704ED3408D61153EAA45AB23C597DD59269BC5F550898D99A6476B3ADF6B47008B74DF8BB9EF7333BD3B22AA88B938A852937E12ACA7502E6951B79FF9A3F410CA545F18667F91A7EA1CDA0B5A7A0 X-C8649E89: 4E36BF7865823D7055A7F0CF078B5EC49A30900B95165D3419891600CCEF460731F92B9BAA63F46969237A5302D6BE704906362113CF51656327BB443A6E05261D7E09C32AA3244C3E372F249E23BEF436715D7C04721113D08D48398F32B4A6FACE5A9C96DEB163 X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2bioj1t4H7vLuVFWPXFWBJgdKzA== X-Mailru-Sender: 689FA8AB762F73936BC43F508A0638220EDDB1DB2F4709E34ADDFED2487E1FA13841015FED1DE5223CC9A89AB576DD93FB559BB5D741EB963CF37A108A312F5C27E8A8C3839CE0E267EA787935ED9F1B X-Mras: Ok Subject: Re: [Tarantool-patches] [PATCH v4 07/12] raft: filter rows based on known peer terms 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" > diff --git a/test/replication/gh-5445-leader-inconsistency.result b/test/replication/gh-5445-leader-inconsistency.result > new file mode 100644 > index 000000000..5c6169f50 > --- /dev/null > +++ b/test/replication/gh-5445-leader-inconsistency.result > @@ -0,0 +1,292 @@ <...> > +-- Old leader returns and old unconfirmed rows from it must be ignored. > +-- Note, it wins the elections fairly. > +test_run:cmd('start server '..leader..' with args="3 0.4 voter"') > + | --- > + | - true > + | ... > +test_run:wait_lsn(leader, next_leader) > + | --- > + | ... > +test_run:switch(leader) > + | --- > + | - true > + | ... > +test_run:wait_cond(function() return box.space.test:get{2} == nil end) > + | --- > + | - true > + | ... > +box.cfg{election_mode='candidate'} > + | --- > + | ... > + > +test_run:switch('default') > + | --- > + | - true > + | ... > +test_run:switch(next_leader) You might want to add a check here, that the 'next_leader' node didn't re-apply any rows from the old leader. So {2} still does not exist even after these two nodes are in full sync.