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 745176EC55; Fri, 8 Oct 2021 20:58:17 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 745176EC55 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1633715897; bh=puWrMFMeOu87BEKo5XqtXSQrvNwUXQTIDZK6hRD1+aM=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=R6yVLVdv5p1zB/MwCs98n7laxQnBWIqu78sun21lWm61gSFF303ZyIAXDu2izvnNG mWEfsLuxdIygSEfmV7xf785uAO+Q2iU9eZRov025aGIexfMi2h6I2+hFYEWeetJTKL gIT7g3GdnJMCAnFqAIs3EkSHbVVlq78wjHnDQR30= Received: from mail-lf1-f49.google.com (mail-lf1-f49.google.com [209.85.167.49]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 0879B6EC55 for ; Fri, 8 Oct 2021 20:58:16 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 0879B6EC55 Received: by mail-lf1-f49.google.com with SMTP id r19so40376665lfe.10 for ; Fri, 08 Oct 2021 10:58:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=uVWR6iQmqoEUq2QfjuA/8VFoq4qGPF2iPo1ns4Qm3Hg=; b=QXF5AC51kKFbuM3xgsEwyTy4abN0JhYnk4k84ePiORmb7FGLHWKMHHDsnQ+2xfOdNq tixaPM3hh7/oxX4TUF3TXgsS1DbyVjH8NuzkLrmKLpaPDdcuNYRxVPqPeRHcvVqEYb9J QovWLlm90Ic3sf+tvIF8DHgDFTAByuzXxnPMnuHIcqz9GhlCAyPo0/pAfM98jHZF2JRi B/VOiPUjPl+pdYBB7y+rElTAFeCDCgw7m78khcvuHgug8sYTVbS5Yj9M0HQ4bm+2D2Zv 9Bqf8NLX2AFavAHvLwqEJ3daTOzUGJHq3iRDzrwTHBqW0/CCQKX2CMJLU1adriouSMtf ivXg== X-Gm-Message-State: AOAM533B0445kdQTaIN3+8R4uf7vl+DGmVv91URsrNGunCFpY34ArWMh Xrt0MmBTNAZdle5xWMez1GepvMzO5So= X-Google-Smtp-Source: ABdhPJyaX/4pLHsmN/39rMOj2EtJOx1rm+23ED3uRhREIkh2JvJQOSF3VMatbWe8BE09wZ8aHFzIYw== X-Received: by 2002:ac2:58f4:: with SMTP id v20mr8780077lfo.605.1633715895069; Fri, 08 Oct 2021 10:58:15 -0700 (PDT) Received: from grain.localdomain ([5.18.253.97]) by smtp.gmail.com with ESMTPSA id a5sm149617lff.300.2021.10.08.10.58.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Oct 2021 10:58:13 -0700 (PDT) Received: by grain.localdomain (Postfix, from userid 1000) id 1C9725A0020; Fri, 8 Oct 2021 20:58:13 +0300 (MSK) To: tml Date: Fri, 8 Oct 2021 20:58:06 +0300 Message-Id: <20211008175809.349501-1-gorcunov@gmail.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH v21 0/3] qsync: implement packet filtering (part 1) 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: Cyrill Gorcunov via Tarantool-patches Reply-To: Cyrill Gorcunov Cc: Vladislav Shpilevoy Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" Guys, please take a look once time permit, any comments are highly appreciated! v19 (by Vlad): - do not modify box_issue_promote and demote (while they are still simply utter code duplication but whatever) - make txn_limbo_process being void - make txn_limbo_process_begin/commit/rollback being void - the real processing of request under the lock named as txn_limbo_process_core - testcase completely reworked (kudos to SergeP) - note that if we import test to the master branch without ordering pass it will fire assertion - dropped off debug info from box.info interface v20 (by SergeP): - use guard for ACK processing and parameters change - rework test v21 (by SergeP): - drop warning from txn_limbo_ack - rework test to use cluster helpers and ERRINJ_WAL_WRITE_COUNT error injection, same time drop modification of election_replica script branch gorcunov/gh-6036-rollback-confirm-21 issue https://github.com/tarantool/tarantool/issues/6036 previous series https://lists.tarantool.org/tarantool-patches/20211006201522.335898-1-gorcunov@gmail.com/ Cyrill Gorcunov (3): latch: add latch_is_locked helper qsync: order access to the limbo terms test: add gh-6036-qsync-order test src/box/applier.cc | 12 +- src/box/box.cc | 15 +- src/box/relay.cc | 11 +- src/box/txn.c | 2 +- src/box/txn_limbo.c | 41 +++- src/box/txn_limbo.h | 80 ++++++- src/lib/core/latch.h | 11 + test/replication/gh-6036-qsync-order.result | 204 ++++++++++++++++++ test/replication/gh-6036-qsync-order.test.lua | 97 +++++++++ test/replication/suite.cfg | 1 + test/replication/suite.ini | 2 +- test/unit/snap_quorum_delay.cc | 5 +- 12 files changed, 450 insertions(+), 31 deletions(-) create mode 100644 test/replication/gh-6036-qsync-order.result create mode 100644 test/replication/gh-6036-qsync-order.test.lua base-commit: ce5752ce235324fcefd5a3d0503fd3f8a1800d38 -- 2.31.1