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 2409A70358; Wed, 15 Sep 2021 17:50:53 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 2409A70358 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1631717453; bh=n9fD2PvyBDX+cv1ODLSP5WPSSu2Q0f8UP+CYfBt2ZvY=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=Dn2eAH1PiF9nkMNk+7bX+4DCsBh3DifVSVFFD1oaBKNiXNiLMkmI2R6CJJ1UvaQqA EvmGg6kl2/CZq3jt3a3QeAMN4ktLaKy8lteLk5uqF4N+q47wfZpbSZGzvjijG0J8Uo QzYy72HxbIZ4xNobfv2NP8Pl1Q9Z4WDATM3tQQY8= Received: from mail-lf1-f51.google.com (mail-lf1-f51.google.com [209.85.167.51]) (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 6479570358 for ; Wed, 15 Sep 2021 17:50:51 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 6479570358 Received: by mail-lf1-f51.google.com with SMTP id m3so4736430lfu.2 for ; Wed, 15 Sep 2021 07:50:51 -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=N7Ywfmmy9a1hdyQS8yZAkAegIJXG9151h5qqaORsTkE=; b=EL0l4idxCBIk6iThRLpOXvD+ti9/Dsxm4fY7foF8GfxFHMX+umKd210xqY5SQi+DiV rRvOK8c7OGzsEuHgwvfcNu0DLN7MHRvc61MA9dQD4ytq0j5gFurYjahr+TT0pbtwbz6x 68IWHy7uSq6aVXsAs0WFkTIH5CEbMJeRHjOq/Kos05k32XXd7edcrygVkrhhA10dsweO nwigWAm9gJgx0pJfMYNFoMljhrenrdB/RPprsnpzOOVrXJBHj2frGAV9aDb8hJAaJO60 nJlJTusFtKadSsx7qnCAc8SSoDmlldIO2k+ZWlv8Z1GMsryDSlJrr4UsagpfEERliWlw Qz3Q== X-Gm-Message-State: AOAM530ZbRTXE5P9uNHxDCNnyZUh7IJ/o36rprxg9LjsVYxkqYAEdZOg GeJ9d2qSKgFYST9zahOff7QFVo9Ee/Y= X-Google-Smtp-Source: ABdhPJyr2BKVoYOW8jfYXeoDAoyb26HayZ9ijNugRST/oxyB8IeusCg4/YkMd9e9enISGW5ggnYsBQ== X-Received: by 2002:ac2:58cc:: with SMTP id u12mr216961lfo.217.1631717450409; Wed, 15 Sep 2021 07:50:50 -0700 (PDT) Received: from grain.localdomain ([5.18.253.97]) by smtp.gmail.com with ESMTPSA id n15sm3701lfq.270.2021.09.15.07.50.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Sep 2021 07:50:49 -0700 (PDT) Received: by grain.localdomain (Postfix, from userid 1000) id DFD6D5A001E; Wed, 15 Sep 2021 17:50:48 +0300 (MSK) To: tml Date: Wed, 15 Sep 2021 17:50:43 +0300 Message-Id: <20210915145046.133303-1-gorcunov@gmail.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH v16 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" Packet filtering takes more and more time to implement and I send similar patches again multiple times. Still the complete split brain detection is not yet done, so I thought it might be worth to split the work into several series. This part addresses a race with terms manipulation and I think can be considered as its own. I would really appreciate comments here mostly due to function naming, comments and etc. My primary aim was to make sure that this series doesn't break anything existing but I think if we would have a test case for this ordering issue it would be brilliant, though I didn't come with some simple one here yet. branch gorcunov/gh-6036-rollback-confirm-16 issue https://github.com/tarantool/tarantool/issues/6036 previous series https://lists.tarantool.org/tarantool-patches/20210910152910.607398-1-gorcunov@gmail.com/ Cyrill Gorcunov (3): latch: add latch_is_locked helper qsync: order access to the limbo terms qsync: track confirmed_lsn upon CONFIRM packet src/box/applier.cc | 16 +++++++--- src/box/box.cc | 71 +++++++++++++++++++---------------------- src/box/memtx_engine.cc | 3 +- src/box/txn_limbo.c | 48 ++++++++++++++++++++++++++-- src/box/txn_limbo.h | 49 +++++++++++++++++++++++++--- src/lib/core/latch.h | 11 +++++++ 6 files changed, 146 insertions(+), 52 deletions(-) base-commit: 8461d67ee4deb5ceff5bc8076bc40883ad4e022b -- 2.31.1