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 D03676EC58; Tue, 25 May 2021 13:39:37 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org D03676EC58 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1621939177; bh=uD+lZXJ1fFfrsp97Z6GvUGCZeS8ZDUtxxuiVDAMHYBI=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=s67yGc3+Su2z1IjMzpjb0sAHJnu1y1BsF591cGgkLyrswHOMdfwz8Hr4PCQQIjbYB E5NxbdfdGV+OqVl8wGoeWJUCSEXawQeaeKYCEbQhikmjxhjED83Z3VmUA75awiC2Vm D7Qm8s4Kl2rSwCUaAwgyzGwKvH+SsDAKZCrxv8aM= Received: from smtp35.i.mail.ru (smtp35.i.mail.ru [94.100.177.95]) (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 B14536EC58 for ; Tue, 25 May 2021 13:39:32 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org B14536EC58 Received: by smtp35.i.mail.ru with esmtpa (envelope-from ) id 1llUTD-0002vj-Pn; Tue, 25 May 2021 13:39:32 +0300 To: v.shpilevoy@tarantool.org, gorcunov@gmail.com Date: Tue, 25 May 2021 13:39:27 +0300 Message-Id: X-Mailer: git-send-email 2.30.1 (Apple Git-130) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-7564579A: 646B95376F6C166E X-77F55803: 4F1203BC0FB41BD91B019B01C53E51AF9055931F25A1C7413A6B5BA1B6C38DA100894C459B0CD1B9A551F86E15A5052B5C624B84C9E3EE0A0BC1D0E047EE27F5B8E9B88366A1DBEF X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE7D114FA852BF02E08EA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F7900637652CD06254D2F21C8638F802B75D45FF36EB9D2243A4F8B5A6FCA7DBDB1FC311F39EFFDF887939037866D6147AF826D8F347CC1E8788EEAF9ECBDF794AEF2B1A117882F4460429724CE54428C33FAD305F5C1EE8F4F765FCAA867293B0326636D2E47CDBA5A96583BD4B6F7A4D31EC0BC014FD901B82EE079FA2833FD35BB23D27C277FBC8AE2E8BF1175FABE1C0F9B6A471835C12D1D977C4224003CC8364762BB6847A3DEAEFB0F43C7A68FF6260569E8FC8737B5C2249EC8D19AE6D49635B68655334FD4449CB9ECD01F8117BC8BEAAAE862A0553A39223F8577A6DFFEA7C747589E6AAA3516243847C11F186F3C59DAA53EE0834AAEE X-C1DE0DAB: C20DE7B7AB408E4181F030C43753B8186998911F362727C414F749A5E30D975CDFB9373DB28FDDFBEDF34852542E63ADA617A94E2C4BCDC29C2B6934AE262D3EE7EAB7254005DCED186FF4DAFD5426419510FB958DCE06DB6ED91DBE5ABE359ADBCB5631A0A9D21F8D1F0E447259586B93EDB24507CE13387DFF0A840B692CF8 X-C8649E89: 4E36BF7865823D7055A7F0CF078B5EC49A30900B95165D34C2E47CA9A560609026F4544FA49CDA89B6270F473116B51A758D0DB55337E10538F2B0719476A6011D7E09C32AA3244CB685807BE871E03A28CC8A3E77F12D8B4DBEAD0ED6C55A80927AC6DF5659F194 X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojV3CWresp27cyw7BWnb5eOw== X-Mailru-Sender: 3B9A0136629DC9125D61937A2360A446C5C3ACC23E232AA665FE3AD0EC241D70375C4B5E3292CF96424AE0EB1F3D1D21E2978F233C3FAE6EE63DB1732555E4A8EE80603BA4A5B0BC112434F685709FCF0DA7A0AF5A3A8387 X-Mras: Ok Subject: [Tarantool-patches] [PATCH v2 0/2] fix an assertion failure in box.ctl.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: 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" https://github.com/tarantool/tarantool/tree/sp/gh-6032-promote-wal-write-v2 https://github.com/tarantool/tarantool/issues/6032 Changes in v2: - replaced custom waiting for a WAL write with a single wal_sync() call. This simplified the patch quite a bit. - shortened the test. It doesn't test promote() cancellation now, because wal_sync() isn't cancellable. Serge Petrenko (2): box: refactor in_promote using a guard box: fix an assertion failure in box.ctl.promote() src/box/box.cc | 38 ++++++---- .../gh-6032-promote-wal-write.result | 69 +++++++++++++++++++ .../gh-6032-promote-wal-write.test.lua | 28 ++++++++ test/replication/suite.cfg | 1 + test/replication/suite.ini | 2 +- 5 files changed, 124 insertions(+), 14 deletions(-) create mode 100644 test/replication/gh-6032-promote-wal-write.result create mode 100644 test/replication/gh-6032-promote-wal-write.test.lua -- 2.30.1 (Apple Git-130)