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 3163A6EC55; Wed, 6 Oct 2021 23:15:27 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 3163A6EC55 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1633551327; bh=sA4Z307FXAfhfty1QG/wBOplEXD/ba3DoEqRLEiU6rk=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=nyRnlLqh3crYdBFARyuhOmqQGzmkBG3iGuVWc1jmcoC4PrI+0A1+EU2R/TdY7UPYA +Pt49cEfHiJE3jWYluV7wa9fGrwpsSbJBzovGUHXFF7Dc5sdFUpGGFx7cp/f1n1J8E 04cAJ7vDbfViPo+FPGJ2onPO7vZMxp0cH/GhjZxk= Received: from mail-lf1-f48.google.com (mail-lf1-f48.google.com [209.85.167.48]) (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 6D84D6EC55 for ; Wed, 6 Oct 2021 23:15:26 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 6D84D6EC55 Received: by mail-lf1-f48.google.com with SMTP id b20so15618803lfv.3 for ; Wed, 06 Oct 2021 13:15:26 -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=AdDbGy8XyCIBdBCoQ+tUOrFyQp1+YLParuUbU3Ru1G8=; b=7KhB+dp2oETDsgJponsuxG1CTXIOSgg5fOQ8zmmRVYWk0omoV0keUDuorxDrGtRpr3 lr/GRU4jNxdsD7iej6OxSrdoO34+u6YBs7jVZsZNcjK9NXiPGBQ/sHwlUrAJwaSKPnxg GA7sj4qptAW/geyIANA//IcJqdSressem0jqsnyylWUA/qtF6zS20v0ShblzrnTJxTvJ +H0lYCdVhFvjA4KkfIcVNe5DB4Dh450eyL3cDePTVWbl0tEaxxJ9OzDDFZIENJmkHHmY U+Zvyxv1kYAUMVtyPVUdWNaD4oe4tMgEDzanopuB/gfglYo/wRgAYXZpCgCUzKcJ+aW2 +3gg== X-Gm-Message-State: AOAM533d6GTCQU2yHFWsEaPIwLsDg5RTHbp8KkJEVSVD1HyXa1R3bG0K R+ONuI661IoAU6hL0E7GR0tr9G7AZNw= X-Google-Smtp-Source: ABdhPJwGAqG6zAU2MbeMCt0HLKDX0MpHSszl9uCaXziUidwKGaJtVZwSjZ5jyxkFidTruFsPBu9pCg== X-Received: by 2002:ac2:58e5:: with SMTP id v5mr43775lfo.589.1633551325236; Wed, 06 Oct 2021 13:15:25 -0700 (PDT) Received: from grain.localdomain ([5.18.253.97]) by smtp.gmail.com with ESMTPSA id r16sm2243350ljp.91.2021.10.06.13.15.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Oct 2021 13:15:23 -0700 (PDT) Received: by grain.localdomain (Postfix, from userid 1000) id ECFC25A0020; Wed, 6 Oct 2021 23:15:22 +0300 (MSK) To: tml Date: Wed, 6 Oct 2021 23:15:19 +0300 Message-Id: <20211006201522.335898-1-gorcunov@gmail.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH v20 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 branch gorcunov/gh-6036-rollback-confirm-20 issue https://github.com/tarantool/tarantool/issues/6036 previous series https://lists.tarantool.org/tarantool-patches/20210930094445.316694-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 | 45 +++- src/box/txn_limbo.h | 80 ++++++- src/lib/core/latch.h | 11 + test/replication/election_replica.lua | 3 +- test/replication/gh-6036-qsync-order.result | 224 ++++++++++++++++++ test/replication/gh-6036-qsync-order.test.lua | 103 ++++++++ test/replication/suite.cfg | 1 + test/replication/suite.ini | 2 +- test/unit/snap_quorum_delay.cc | 5 +- 13 files changed, 482 insertions(+), 32 deletions(-) create mode 100644 test/replication/gh-6036-qsync-order.result create mode 100644 test/replication/gh-6036-qsync-order.test.lua base-commit: 60f168184b8dfcafa6805a1e00a09012265b58db -- 2.31.1