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 5A9226EC55; Tue, 15 Jun 2021 16:56:36 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 5A9226EC55 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1623765396; bh=6lhdObhuXdwbLQIIVyKfIWCfapD8xaBMNU3j6YjKiz8=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=nsQfUMmNjAP2pJO56toqlNHxgQ+xsFVw3lObUgadPjR+tdZllMmEvAXwnWPfibe50 AWmm5Emi8QojVq3ZDhst8mmcjef7X3MW7OD4hTZ5Dk698KpRmSPtKkYSNjId1Or/mT OMG+90bMsAWfzja0FPyNI100kOC2yCW4ajnr3shI= Received: from mail-lj1-f174.google.com (mail-lj1-f174.google.com [209.85.208.174]) (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 9F2D66EC55 for ; Tue, 15 Jun 2021 16:56:34 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 9F2D66EC55 Received: by mail-lj1-f174.google.com with SMTP id d13so13022120ljg.12 for ; Tue, 15 Jun 2021 06:56:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=DP5Mujuuh/hBji2COB5lGtCfV4UY9uOz6xorebKmy6k=; b=Y0jVT96cG7gYMt6/fkrWHsHcrVR+IxnQvwm24qH3np7P+k8dYwDiIc3OHodiV8B9bF DvrP+ZnRp8o+M3g6C+zOsfH4z5FHc2OEsEjdvheCL6Gzc/94DoM8y5zZKFR0/W8wLI/q YDArdryPaf61hxpF0HPdiLX7g9uSPfST5xhcstaWmS+mky9Yjia7tdJQ8KAtNF2sdcXu bsQV0zJ1AFqmE7iswT++YIGlytWVVMFpM/M+kFEDAcWeg35F8TJkPQ1tZPeG2Sl9z8gM oyvCL6TVsUjpRawlDzeKozTtCZFwM/uQZshbzt2RDa7cetQR4ZqziIKT5GkzF46+co14 tSZA== X-Gm-Message-State: AOAM533taSnobQkKN4J7X6/3kSqf1wAvxlmtGYHSoZlOHEwktfEaGM/d l7ouEu0hkLUhpr9rPWpVZtD3kIYxKjU= X-Google-Smtp-Source: ABdhPJztUUESNnbCoTjfhzHvUbBojUApe+FkDG9m6oKZ4lvT6fMfKxSU70OkMg+ezxt8+BOWB8G8YQ== X-Received: by 2002:a05:651c:11cd:: with SMTP id z13mr10427976ljo.365.1623765393394; Tue, 15 Jun 2021 06:56:33 -0700 (PDT) Received: from grain.localdomain ([5.18.171.94]) by smtp.gmail.com with ESMTPSA id d23sm1304631ljo.18.2021.06.15.06.56.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Jun 2021 06:56:32 -0700 (PDT) Received: by grain.localdomain (Postfix, from userid 1000) id 6E0C05A002A; Tue, 15 Jun 2021 16:56:31 +0300 (MSK) To: tml Date: Tue, 15 Jun 2021 16:56:29 +0300 Message-Id: <20210615135630.63465-1-gorcunov@gmail.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH v9 0/1] applier: filter incoming synchro packets via transaction initiator 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, here is a patch which implements the filtration we are interested in. I switched back to the former version with a few updates: - fixed comment in gh-5445-leader-inconsistency test as Serge pointed - added comments to the new patch pointing what's going on - we tried to rework the test with Serge but it didn't make thnigs much easier so I left the former approach - we use only memtx engine as Vlad asked Please give it a shot. issue https://github.com/tarantool/tarantool/issues/6035 branch gorcunov/gh-6035-applier-filter-9 Cyrill Gorcunov (1): applier: filter incoming synchro packets via transaction initiator src/box/applier.cc | 27 ++-- src/lib/raft/raft.h | 7 - .../gh-5445-leader-inconsistency.result | 15 ++ .../gh-5445-leader-inconsistency.test.lua | 5 + .../replication/gh-6035-applier-filter.result | 144 ++++++++++++++++++ .../gh-6035-applier-filter.test.lua | 68 +++++++++ test/replication/gh-6035-master.lua | 1 + test/replication/gh-6035-node.lua | 35 +++++ test/replication/gh-6035-replica1.lua | 1 + test/replication/gh-6035-replica2.lua | 1 + test/replication/suite.cfg | 3 + 11 files changed, 288 insertions(+), 19 deletions(-) create mode 100644 test/replication/gh-6035-applier-filter.result create mode 100644 test/replication/gh-6035-applier-filter.test.lua create mode 120000 test/replication/gh-6035-master.lua create mode 100644 test/replication/gh-6035-node.lua create mode 120000 test/replication/gh-6035-replica1.lua create mode 120000 test/replication/gh-6035-replica2.lua base-commit: 9fb95cfd78403b33cacbe765c35036a0532b2c02 -- 2.31.1