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 877B66E0CB; Thu, 30 Dec 2021 23:23:54 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 877B66E0CB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1640895834; bh=WcVGQKO20viN8TqBr3qgqmqkXQOlHdhW0r7E/+dWhlI=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=VplMzW4DfZBYkrJIfxO2d3WuzpsmhvZT42bJtkXYJLh0g/MoNoBZNNhEBbn1ljfUI NgIRolkpdD84vaS4R+BERjogJqxejCkMciAPHNJKf4ovTz/ps6ULBfyF9TKGrrHIao L54KhLvdz5xi9WLOXkNLGqtrawdSeksPfbWeqaSc= Received: from mail-lf1-f52.google.com (mail-lf1-f52.google.com [209.85.167.52]) (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 5BD976E0CB for ; Thu, 30 Dec 2021 23:23:53 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 5BD976E0CB Received: by mail-lf1-f52.google.com with SMTP id o12so56690369lfk.1 for ; Thu, 30 Dec 2021 12:23:53 -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=50UOx7a0UduxsWSVsU74D2kvkckQw0R6qpWw7qTT+d0=; b=Y42dX6XTzw2M+qlShEf7QymXFwkkmyjHscYLBv4Xbnznr06EdZbiW4aEhPT4qUcJQ4 xGSH4oCh0f5LySpMPykE90LdkiDcqR6m7sdZKsn5BZBTT1w0cYNsVTveFbFQxxQ5K0i5 056jaAqfrqqM+jfZ/K1T0Yw2kkrLJfLHnYG6CoqEyDjBtXANXTjItuU40MVW4gNqkK9X p3wygMqd6hhuoB8i7VqHUr9l9WTYfVb9yg0BTOcqZIcw+HrbCue0SkIxo7ao2D+CQXQh 3rJuCsgDT6CU4T784lB6opVyg6JkOVG1Xaj5wsyLatzT3LhmSUmXqDBSBDQMXcKbTgAi aOAw== X-Gm-Message-State: AOAM531qxJ1DucXrFauHjzldKdDyUWCkyJilG2l1/9kRzvnx7N171Hl/ 7sMw0FKiLnvubkruS4xjcbR4MuKbJi0= X-Google-Smtp-Source: ABdhPJzXq6e66NxgYPAMhehHg2hxPzED9hfBoc0veo4G4OsBhpCBpHc/bq+/HemE4Um7oGI1sfiBug== X-Received: by 2002:a05:6512:3050:: with SMTP id b16mr29677404lfb.92.1640895830357; Thu, 30 Dec 2021 12:23:50 -0800 (PST) Received: from grain.localdomain ([5.18.251.97]) by smtp.gmail.com with ESMTPSA id f11sm1847833lfu.210.2021.12.30.12.23.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Dec 2021 12:23:49 -0800 (PST) Received: by grain.localdomain (Postfix, from userid 1000) id 84BDD5A0020; Thu, 30 Dec 2021 23:23:48 +0300 (MSK) To: tml Date: Thu, 30 Dec 2021 23:23:44 +0300 Message-Id: <20211230202347.353494-1-gorcunov@gmail.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH v27 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! v22 (by SergeP): - use limbo emptiness test _after_ owner_id test - drop redundant assert in limbo commit/rollback since we're unlocking a latch anyway where own assertion present - in test: drop excessive wait_cond and setup wal delay earlier v23 (by SergeP): - fix problem with owner test in case of recovery journal - update test v27: - simplify the code and cover the case targeting journal write plus terms access race only - i've spent almost a few months trying to use fine grained locking scheme for limbo but it end up in very complex code so eventually I dropped this idea (here why we've v27 after v23) branch gorcunov/gh-6036-rollback-confirm-27-notest issue https://github.com/tarantool/tarantool/issues/6036 previous series https://lists.tarantool.org/tarantool-patches/20211014215622.49732-1-gorcunov@gmail.com/#r 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/lua/info.c | 4 +- src/box/txn_limbo.c | 18 +- src/box/txn_limbo.h | 52 ++++- src/lib/core/latch.h | 11 + test/replication/gh-6036-qsync-order.result | 189 ++++++++++++++++++ test/replication/gh-6036-qsync-order.test.lua | 94 +++++++++ test/replication/suite.cfg | 1 + test/replication/suite.ini | 2 +- 9 files changed, 371 insertions(+), 12 deletions(-) create mode 100644 test/replication/gh-6036-qsync-order.result create mode 100644 test/replication/gh-6036-qsync-order.test.lua base-commit: e2d6c260516c30d33c816b7a6c6c1696e55a39b2 -- 2.31.1