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 9B2156E454; Fri, 4 Mar 2022 09:01:11 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 9B2156E454 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1646373671; bh=//8zYDoLT7H1U0XH/YJkjFIi155aMj/8sX3SiF98CKQ=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=KkrZyTx6oJjqq/4wlt923gAL2zd4SU9hjQK09dg6+AyeRmHbgbYylKxrZZvEMKguH jvD/Z7e6dOUWQrWnswcQmNiYZTPKGJUMPrb84TycNljU5UqYxgSSn7Arw/aLcVXdUx MhXs7AXULChaVub3AoHA/xKyyPvWY7S6L0FdIMrY= Received: from mail-lf1-f53.google.com (mail-lf1-f53.google.com [209.85.167.53]) (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 C50CD6E454 for ; Fri, 4 Mar 2022 09:01:09 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org C50CD6E454 Received: by mail-lf1-f53.google.com with SMTP id d23so12311023lfv.13 for ; Thu, 03 Mar 2022 22:01:09 -0800 (PST) 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=wt736xVibTL/OehXo6FQsfUxtutZDpgXHCEEKxyCzOg=; b=xYw+1sVKMOI9m0p8lojJysqkNRB3Ww7cYFI68+5BAUPgcNg2sfVF7mSCU6sbpInGZ2 nkUPJ5R14oMoT5P6E0f1tQv59f5hyFqPpLt2zn2TjDxWcHrkzTF0WXlZUGq/N/CT7/mG y5Xo1SXeA8w2+/No5CMtrajl1JgViYrv5/rjfHNwWKGUn33sRCY12Xq08s8BBHhi/vQw aimgVNg+y9JNQVUW2FhJk3Mftrf+hGLxHf4sToBjXostL4aw/JbRCQq43uuQccNtncKm 4IbArE0Urb4nGfYEQxtDeEX6JeghRO3Z/GBBqBCv4Qwju4ZMeQIzlg4+gD6oZFX90+Sf UFSg== X-Gm-Message-State: AOAM533yiHLis9qP9+30Lg875SFVELTq7Xea/MjeolZGbec9xXy3DBsw BQ7uFge/L20nixisNC9EaOajeE/mDgo= X-Google-Smtp-Source: ABdhPJxsKeXxJtHfY7W5iRXLOkdD6a3CxWWJc6KMLLQH4CI0w6xA6rycrZ/JXRoVE9vwAdPpC6ur+A== X-Received: by 2002:a05:6512:3196:b0:447:70ad:a5ee with SMTP id i22-20020a056512319600b0044770ada5eemr2075825lfe.434.1646373668487; Thu, 03 Mar 2022 22:01:08 -0800 (PST) Received: from grain.localdomain ([5.18.251.97]) by smtp.gmail.com with ESMTPSA id p23-20020a2e9ad7000000b00244b2ec2f88sm914308ljj.50.2022.03.03.22.01.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Mar 2022 22:01:07 -0800 (PST) Received: by grain.localdomain (Postfix, from userid 1000) id B38E35A0020; Fri, 4 Mar 2022 09:01:06 +0300 (MSK) To: tml Date: Fri, 4 Mar 2022 09:01:03 +0300 Message-Id: <20220304060105.1186867-1-gorcunov@gmail.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH v32 0/2] 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, take a look please, once time permit. Comments are welcome! v30: - addess commenst (redundant code modifications due to more general locking scheme) - leave `latched` status for transactions which are started to process (ie entered limbo processing) but not yet complete due to WAL stalls, since I need to test exactly such state - extend the test v31 (by SergeP): - drop latch_is_locked member - use `busy` flag in info output - update test case (kudos to SergeP for help) v32 (by SergeP): - update test - improve changelogs (adding tags) - merge test with second patch branch gorcunov/gh-6036-rollback-confirm-32 issue https://github.com/tarantool/tarantool/issues/6036 previous series https://lists.tarantool.org/tarantool-patches/20220302202711.1003906-1-gorcunov@gmail.com/ Cyrill Gorcunov (2): latch: add latch_is_locked helper qsync: order access to the limbo terms .../unreleased/gh-6036-applier-fix-race.md | 5 + src/box/applier.cc | 6 +- src/box/box.cc | 8 +- src/box/lua/info.c | 4 +- src/box/txn_limbo.c | 13 +- src/box/txn_limbo.h | 44 +++- src/lib/core/latch.h | 11 + .../gh_6036_qsync_order_test.lua | 194 ++++++++++++++++++ test/replication-luatest/suite.ini | 1 + 9 files changed, 276 insertions(+), 10 deletions(-) create mode 100644 changelogs/unreleased/gh-6036-applier-fix-race.md create mode 100644 test/replication-luatest/gh_6036_qsync_order_test.lua base-commit: 884b3ff3ffa5f6a9d4c3982611da83dc935d0b17 -- 2.35.1