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 04A916FC8F; Fri, 16 Apr 2021 02:31:33 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 04A916FC8F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1618529493; bh=sS+BQv1anjnj+Qp1bjTOdaVftI7q08rwMc01p6XA10k=; 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=rV6xzwP9PwlBgK2qOfttqh7mt3pbhYnPG0me+hyrllpBvvwqfkuDU0tAVr2TEkKiW SRD3MKnDFjxy7cYVfOL1XUdjwefFQ3WjNa2XAbRaqjtWJBCqC+XavSiNmeVUKirIqE /qdv8ZET+kr2WgdLvJtvt9/nG85xMpvMEFm+f4Lg= Received: from smtp40.i.mail.ru (smtp40.i.mail.ru [94.100.177.100]) (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 E1B116FC8F for ; Fri, 16 Apr 2021 02:31:21 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org E1B116FC8F Received: by smtp40.i.mail.ru with esmtpa (envelope-from ) id 1lXBSD-00042x-Cm; Fri, 16 Apr 2021 02:31:21 +0300 To: Serge Petrenko , gorcunov@gmail.com Cc: tarantool-patches@dev.tarantool.org References: Message-ID: <8bc83a40-710e-0e11-7e3a-f7abcc49846d@tarantool.org> Date: Fri, 16 Apr 2021 01:31:20 +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: 78E4E2B564C1792B X-77F55803: 4F1203BC0FB41BD92FFCB8E6708E7480EBD5CA77A668ECB87DA2124B0A8E6609182A05F538085040AD3BDE9A15F07681E3A1882C067268C8D9B0C08E0A40478F06E1E438E3D805CF X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE79CCD1D12379CC213EA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F790063754D7F012132A27898638F802B75D45FF914D58D5BE9E6BC1A93B80C6DEB9DEE97C6FB206A91F05B27FE87FCACA7620F6012A1C67CE06C67332051A2C76225635D2E47CDBA5A96583C09775C1D3CA48CFCA5A41EBD8A3A0199FA2833FD35BB23D2EF20D2F80756B5F868A13BD56FB6657A471835C12D1D977725E5C173C3A84C3CA5A41EBD8A3A0199FA2833FD35BB23DF004C90652538430302FCEF25BFAB3454AD6D5ED66289B5278DA827A17800CE7C2C149C3D6AFCCEED32BA5DBAC0009BE395957E7521B51C20BC6067A898B09E4090A508E0FED6299176DF2183F8FC7C07D206EE7D74B1184CD04E86FAF290E2DC30332B2CB947D741DD303D21008E298D5E8D9A59859A8B6B372FE9A2E580EFC725E5C173C3A84C34B08FA16E56A400835872C767BF85DA2F004C90652538430E4A6367B16DE6309 X-B7AD71C0: AC4F5C86D027EB782CDD5689AFBDA7A2368A440D3B0F6089093C9A16E5BC824A2A04A2ABAA09D25379311020FFC8D4AD6C30AE2B5E62355B2F4A477CFED39772 X-C1DE0DAB: 0D63561A33F958A514BEE8966ECCECC2B985C3FBFC698E3C70C7973D11E7C1F2D59269BC5F550898D99A6476B3ADF6B47008B74DF8BB9EF7333BD3B22AA88B938A852937E12ACA7502E6951B79FF9A3F410CA545F18667F91A7EA1CDA0B5A7A0 X-C8649E89: 4E36BF7865823D7055A7F0CF078B5EC49A30900B95165D3416EA6E382A5BB1766FBB2C46A56D3EB9D58076BE01C3BE2AD2BDAD717942223F8C36A73C2702D1411D7E09C32AA3244CD0B73BFF1B2106617B2FBE058E1AEA4E3E8609A02908F271FACE5A9C96DEB163 X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2bioj3S6P1v0GIqR0vC9XJsi1XA== X-Mailru-Sender: 504CC1E875BF3E7D9BC0E5172ADA31102CF7EABF1C1D755F9D7DC24F4F051DA158AAF33790AE97B607784C02288277CA03E0582D3806FB6A5317862B1921BA260ED6CFD6382C13A6112434F685709FCF0DA7A0AF5A3A8387 X-Mras: Ok Subject: Re: [Tarantool-patches] [PATCH v3 10/10] box.ctl: rename clear_synchro_queue to promote 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" Thanks for the patch! > diff --git a/test/replication/election_basic.result b/test/replication/election_basic.result > index d5320b3ff..78c911245 100644 > --- a/test/replication/election_basic.result > +++ b/test/replication/election_basic.result > @@ -108,6 +108,31 @@ assert(box.info.election.leader == box.info.id) > | - true > | ... > > +-- Manual election mode. A voter most of the time, a leader once > +-- `box.ctl.promote()` is called. > +box.cfg{election_mode = 'manual'} > + | --- > + | ... > + > +assert(box.info.election.state == 'follower') > + | --- > + | - true > + | ... > +term = box.info.election.term > + | --- > + | ... > +box.ctl.promote() > + | --- > + | ... > +assert(box.info.election.state == 'leader') > + | --- > + | - error: assertion failed! > + | ... > +assert(box.info.election.term > term) > + | --- > + | - error: assertion failed! Hm. Shouldn't these assertions pass?