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 DC4486FC82; Thu, 30 Sep 2021 12:44:53 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org DC4486FC82 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1632995094; bh=spJYbZhdF75P+NFR3/1+yFSGK9UpyaJARpIa+9WfGg0=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=ZiuDh2EeLK1u5X1HFD5npRimhzWuQ3BrwlO/uyqLFWZ+fEpL1wMMfu23OCrGNbUdO 5cmLFFsKWhOxlbgb025Z7pdjCBAKL/kOknQgvslWo57HYEfUsAW9/E/yFerw6GSo5m gBa6ripI5TXZ51vXZNDyFTjCxB1mIRNo/Kio7CwE= Received: from mail-lf1-f47.google.com (mail-lf1-f47.google.com [209.85.167.47]) (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 A61F36FC82 for ; Thu, 30 Sep 2021 12:44:51 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org A61F36FC82 Received: by mail-lf1-f47.google.com with SMTP id i4so22941018lfv.4 for ; Thu, 30 Sep 2021 02:44:51 -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=I3A26KtvrNNA2Xhyphri+O6Usjtr3IWJZxkPklAxivE=; b=sY1eKBuvIGiWXUNHeys/IzeLwAn24pjRZqc8/yAXXlAteCIbUNMyYILeu4rvUnnnZb 8pbm6JNDIVx1A2zsHSWlhHhdnCnIlecaBrWztVtcVKuxJYriSO9IB3nH5S2ORo8jCaa5 o4kktym5HM+1h8gPaVQN9QA3j3QPlhk6XIAg2H3AMsPYHXmI4XhKNU1vtEJNJGtZn/jF zWZtcjcQXTUAQokFPzzMN3JlFEEcj9N3FNSlPPUhl3/VpDIwsqmsNvLGQ6UtuW/CAioV kkXXk4GUUsQm+JTJyAJyGKUiedc1nSPq6+XSRWKl2TATx6BS8seuEwK3OA+UoUU+2lgC VQ7g== X-Gm-Message-State: AOAM531MfDQNbBo3DTKOOFwP7a8yo4+/B6TG6E2+uO1c4jJfooZj6UN2 KsfoOh18WShYQhA+D5VBdQtEHrhN6ohKtA== X-Google-Smtp-Source: ABdhPJzJ0K3ZmYnK0DirY5T5fVSnsG4FNV4TC4tTO3hFG17UwLkCwc2xo5bhKYs8xZEZ7gKIdDBF4g== X-Received: by 2002:a05:6512:b04:: with SMTP id w4mr4794355lfu.105.1632995088722; Thu, 30 Sep 2021 02:44:48 -0700 (PDT) Received: from grain.localdomain ([5.18.253.97]) by smtp.gmail.com with ESMTPSA id v23sm313018lfd.85.2021.09.30.02.44.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Sep 2021 02:44:47 -0700 (PDT) Received: by grain.localdomain (Postfix, from userid 1000) id 631925A001E; Thu, 30 Sep 2021 12:44:46 +0300 (MSK) To: tml Date: Thu, 30 Sep 2021 12:44:42 +0300 Message-Id: <20210930094445.316694-1-gorcunov@gmail.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH v19 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" Please take a look once time permit. 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 Guys, also I noted that the test while being passed pretty fine locally sometimes doesn't pass on CI due to timeout in waiting record {2} propagation, so any advices on the test is quite welcome! branch gorcunov/gh-6036-rollback-confirm-19 issue https://github.com/tarantool/tarantool/issues/6036 previous series https://lists.tarantool.org/tarantool-patches/20210922130535.79479-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/txn_limbo.c | 17 +- src/box/txn_limbo.h | 53 ++++- src/lib/core/latch.h | 11 + test/replication/gh-6036-qsync-master.lua | 1 + test/replication/gh-6036-qsync-node.lua | 35 +++ test/replication/gh-6036-qsync-order.result | 207 ++++++++++++++++++ test/replication/gh-6036-qsync-order.test.lua | 95 ++++++++ test/replication/gh-6036-qsync-replica1.lua | 1 + test/replication/gh-6036-qsync-replica2.lua | 1 + test/replication/suite.cfg | 1 + test/replication/suite.ini | 2 +- 13 files changed, 433 insertions(+), 18 deletions(-) create mode 120000 test/replication/gh-6036-qsync-master.lua create mode 100644 test/replication/gh-6036-qsync-node.lua create mode 100644 test/replication/gh-6036-qsync-order.result create mode 100644 test/replication/gh-6036-qsync-order.test.lua create mode 120000 test/replication/gh-6036-qsync-replica1.lua create mode 120000 test/replication/gh-6036-qsync-replica2.lua base-commit: 33830978870bbe8cdc3c23fa06ba0f141a960124 -- 2.31.1