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 0533E6EC56; Sat, 12 Jun 2021 00:56:21 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 0533E6EC56 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1623448581; bh=KI5caO/NVFXJIxc2V01SzQl+0BnzMBmDfk7Q6MgPkBw=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=QJ3xAcDgxhnCHILdjtnz+IuoDVxWg66Ps8JKFpppLEngu7Feo5h/PCjjg6vJN4zHx BZ2wcEhWYWy0YRFazxCHrg870xl0lphPQ1HIeo+L0yz/jUgHY7X0cnhLHBpWaJEtBm OOH1zBNNzhlbua1wpFUMjLkNCEq9JS5DIvJRw4kc= Received: from smtpng3.m.smailru.net (smtpng3.m.smailru.net [94.100.177.149]) (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 047956EC55 for ; Sat, 12 Jun 2021 00:56:20 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 047956EC55 Received: by smtpng3.m.smailru.net with esmtpa (envelope-from ) id 1lrp8U-0008JK-Sk; Sat, 12 Jun 2021 00:56:19 +0300 To: tarantool-patches@dev.tarantool.org, gorcunov@gmail.com, sergepetrenko@tarantool.org Date: Fri, 11 Jun 2021 23:56:04 +0200 Message-Id: X-Mailer: git-send-email 2.24.3 (Apple Git-128) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-7564579A: 646B95376F6C166E X-77F55803: 4F1203BC0FB41BD9D5B0DA836B685C544BBC2A69B1B4100B389BF69B7A224D7C182A05F538085040C61525FA0B6BF19DEB2C79AC46E9F282C338A5A6A82B461229667C7247C85B4A X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE788A2BECDB72E1542EA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F7900637C2EE9128AC0EB2C78638F802B75D45FF36EB9D2243A4F8B5A6FCA7DBDB1FC311F39EFFDF887939037866D6147AF826D827EEE7765370FDBE04A3CECFE4AA5D15117882F4460429724CE54428C33FAD305F5C1EE8F4F765FCAA867293B0326636D2E47CDBA5A96583BD4B6F7A4D31EC0BC014FD901B82EE079FA2833FD35BB23D27C277FBC8AE2E8BAA867293B0326636D2E47CDBA5A96583BA9C0B312567BB231DD303D21008E29813377AFFFEAFD269A417C69337E82CC2E827F84554CEF50127C277FBC8AE2E8BA83251EDC214901ED5E8D9A59859A8B6B1CFA6D474D4A6A4089D37D7C0E48F6C5571747095F342E88FB05168BE4CE3AF X-B7AD71C0: AC4F5C86D027EB782CDD5689AFBDA7A2AD77751E876CB595E8F7B195E1C978317387390EF8EF12409BB839037DF3A6B5 X-C1DE0DAB: C20DE7B7AB408E4181F030C43753B8186998911F362727C414F749A5E30D975C8874A2D3FA5089FE50A15333356EEE7855AD96F036FE77EB9C2B6934AE262D3EE7EAB7254005DCED283AB0BF711A47961E0A4E2319210D9B64D260DF9561598F01A9E91200F654B0CCA28C6D779E2CD78E8E86DC7131B365E7726E8460B7C23C X-C8649E89: 4E36BF7865823D7055A7F0CF078B5EC49A30900B95165D349EC559D073CA5B68B2416CCEA09F120F685AC792EAD47FAEAF971D2D6A006962174170E142C0BB601D7E09C32AA3244CDB99B52C3314EFCA01285CCAE4CA4A83259227199D06760AFACE5A9C96DEB163 X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojQR1NM653rVEPdsfHOK7G5A== X-Mailru-Sender: 689FA8AB762F73936BC43F508A063822012A72F250D0C3984B47C77F48C4F8EC3841015FED1DE5223CC9A89AB576DD93FB559BB5D741EB963CF37A108A312F5C27E8A8C3839CE0E267EA787935ED9F1B X-Mras: Ok Subject: [Tarantool-patches] [PATCH 00/13] Applier rollback reason 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" Branch: http://github.com/tarantool/tarantool/tree/gerold103/gh-6027-rollback-reason Issue: https://github.com/tarantool/tarantool/issues/6027 Vladislav Shpilevoy (13): error: introduce ER_CASCADE_ROLLBACK test: remove replica-applier-rollback.lua journal: make journal_write() set diag on error wal: refactor wal_write_to_disk() diag: introduce diag_set_detailed() wal: encapsulate ER_WAL_IO txn: change limbo rollback check in the trigger journal: introduce proper error codes txn: assert after WAL write that txn is not done txn: install proper diag errors on txn fail wal: introduce JOURNAL_ENTRY_ERR_CASCADE txn: introduce TXN_SIGNATURE_ABORT txn: stop TXN_SIGNATURE_ABORT override .../unreleased/gh-6027-applier-lost-error.md | 7 ++ src/box/applier.cc | 18 ++-- src/box/box.cc | 8 +- src/box/errcode.h | 3 +- src/box/journal.c | 16 ++++ src/box/journal.h | 30 ++++++- src/box/memtx_engine.c | 2 +- src/box/raft.c | 10 ++- src/box/txn.c | 87 +++++++++++++------ src/box/txn.h | 38 +++++++- src/box/txn_limbo.c | 37 ++++---- src/box/vy_scheduler.c | 2 +- src/box/wal.c | 50 ++++++----- src/lib/core/diag.h | 9 +- test/box/errinj.result | 2 +- test/box/error.result | 3 +- .../gh-4730-applier-rollback.result | 2 +- .../gh-4730-applier-rollback.test.lua | 2 +- .../gh-6027-applier-error-show.result | 82 +++++++++++++++++ .../gh-6027-applier-error-show.test.lua | 31 +++++++ test/replication/replica-applier-rollback.lua | 16 ---- test/replication/suite.cfg | 1 + test/replication/suite.ini | 2 +- 23 files changed, 348 insertions(+), 110 deletions(-) create mode 100644 changelogs/unreleased/gh-6027-applier-lost-error.md create mode 100644 test/replication/gh-6027-applier-error-show.result create mode 100644 test/replication/gh-6027-applier-error-show.test.lua delete mode 100644 test/replication/replica-applier-rollback.lua -- 2.24.3 (Apple Git-128)