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 868C36E454; Thu, 24 Feb 2022 23:18:46 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 868C36E454 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1645733926; bh=RvVvy4yi/dptQ2qVXYuYgQNixeItmSQaVl73MhOCsx4=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=nncz0I62cOIfBAYoSk2GDotP41UWbH70NuVI8G4hKIW0dZ7Jj2XbgfU2udkz8emLa Ung/ZBJLlMGyYuiVoPD7dPwkQGSEdt5s2We66BqpUhOcip0sV+VrtU3QT0M2WGNM+e 9g6P8VHl53Hs2c02ciYZOzPXXv9BBrmHxsfbTMLA= Received: from mail-lj1-f175.google.com (mail-lj1-f175.google.com [209.85.208.175]) (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 454476E454 for ; Thu, 24 Feb 2022 23:18:45 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 454476E454 Received: by mail-lj1-f175.google.com with SMTP id r20so4579763ljj.1 for ; Thu, 24 Feb 2022 12:18:45 -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=2bgmgEdkGT65vBlb1Lum5cDnzf2fnORWEPKMZpf8EVo=; b=8DpksKl9KwqLcbmV2dzk26aDHS9lpFH0vX6qtYQvgvAeSp2bEO1uc3nObLTrYeC8sZ X29N7CeZRYYqaSDdzPOVkIAW0KrvzkZnMapbT2NU2UjkZ1NRfEZxmx5PzR6+uXLO6gX+ uTaToRnICTBnwQ9hdpakbCwpViHO7XGtlaVX2yqVPiyvFzSG6GDVvbyLl0/YYICVhV3H To6qkxbQ8lxfNtDX3faxehph8goEe7xiuPp6rPRjMaeF3EN8c85CUwUQ9nlbkE+ZbGlx ETAHETonJ0gVkTXuqdQKM1bsYNXAg7BGQOe3v/+Xqf9bBDwJC/6cX6rjkkWusSP0tXss 43iw== X-Gm-Message-State: AOAM531XvoTwxfznvLbbw/Wcfm2AjaX9xUQNNUnrB1vP9XGyGIWWBB6J DkWjDi7nu7KDKAVQuGKmIg2vk47Ht38= X-Google-Smtp-Source: ABdhPJxAV+F1znbz/z1w1TUWM4EnuTsP/wvckxQZZa3968qFtSjlMG9nHB9GsMNQAoFTyABpuoof7g== X-Received: by 2002:a2e:9142:0:b0:246:2c61:9dbd with SMTP id q2-20020a2e9142000000b002462c619dbdmr3057367ljg.344.1645733923956; Thu, 24 Feb 2022 12:18:43 -0800 (PST) Received: from grain.localdomain ([5.18.251.97]) by smtp.gmail.com with ESMTPSA id y13-20020ac2420d000000b004433cddf621sm18749lfh.119.2022.02.24.12.18.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Feb 2022 12:18:43 -0800 (PST) Received: by grain.localdomain (Postfix, from userid 1000) id 3967D5A0020; Thu, 24 Feb 2022 23:18:42 +0300 (MSK) To: tml Date: Thu, 24 Feb 2022 23:18:38 +0300 Message-Id: <20220224201841.412565-1-gorcunov@gmail.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [RFC v30 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, take a look please, once time permit. Comments are welcome! v29: - rework test into luaform - drop fine-grained locks idea since it requires too much code churn, instead lets fence out a big code parts 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 branch gorcunov/gh-6036-rollback-confirm-30 issue https://github.com/tarantool/tarantool/issues/6036 previous series https://lists.tarantool.org/tarantool-patches/20220131215554.1367429-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 | 6 +- src/box/box.cc | 8 +- src/box/lua/info.c | 4 +- src/box/txn_limbo.c | 16 +- src/box/txn_limbo.h | 51 +++++- src/lib/core/latch.h | 11 ++ .../gh_6036_qsync_order_test.lua | 157 ++++++++++++++++++ test/replication-luatest/suite.ini | 1 + 8 files changed, 245 insertions(+), 9 deletions(-) create mode 100644 test/replication-luatest/gh_6036_qsync_order_test.lua base-commit: 3a98e0794e06bee9ecccbe2bc875e87f612d5560 -- 2.35.1