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 98CF16EC55; Thu, 15 Jul 2021 00:23:39 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 98CF16EC55 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1626297819; bh=06C0lntR7k3d4IqZjHaLTy3v/OatNsqwV4Fa1VMuRVI=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=BqT3aWoznrjp0aZ8nDnHYHuKE8JG2AXpFK/wTfMfm1QTAAkXrG+ktzB29QVZQLdLg ERJbnxECrOXqYZccwaUkEDPIdz6F4kAWfCNirnAA7b7kw5K9mcbXVYrVpj7nRhsyW/ C8F5N1zEpiUPTzLyg4tlXwJrivlOmZt+grwPcBFU= Received: from mail-lf1-f43.google.com (mail-lf1-f43.google.com [209.85.167.43]) (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 6685B6EC55 for ; Thu, 15 Jul 2021 00:23:37 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 6685B6EC55 Received: by mail-lf1-f43.google.com with SMTP id i5so6070318lfe.2 for ; Wed, 14 Jul 2021 14:23:37 -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=F+Zh+NsKr6BKFWL6/aFPOflbMJx6b9RK6PF3Tz6u8U0=; b=GM53RHSIaaBomBsPaz+edjioh1QH+g/KR9ZxYoZ9ndkLw5ZUJio4FJOwPDYPZQ36VL h6kXrbaAnRVWlKB5HS3KYJNB1H/Yr2t18oZQHw5jKVQke+Gno6m+riF8sf1/dqB1WZho XREPbOCHTNqvQZ1YuA/NJdpr2/EiaBA2NwQQOVS9s/fsW81m0SZocl1j/w079UlqM8VA 7G2czV3nhgzbJjjiCSIE6NbpUqujUhQS8Ou2SQcuJbj9nY5Ek1hxxSTk5p/PkT3Cyf23 idIwESTQZOBFDIdWUmYIR78+r3KLXoefKniAviu/SNmDOLNdl2nG4IYyBHVAjRzQmLyj JvRw== X-Gm-Message-State: AOAM5310WrU8gs9sw5f/EtAQnGEumsL6Xpux8lXr++aBSCJSjQHHvlHG dQDzXo5dC6IJdgN1tiPt3F5dlFvBsIKPdQ== X-Google-Smtp-Source: ABdhPJxMolgO60WF9CB0g+ZjYH2FnhMMXIRybNksv5hCdWODDjNOcZjhNLCh29noNSdAAGRFNNVR5w== X-Received: by 2002:ac2:5d2f:: with SMTP id i15mr172745lfb.134.1626297816182; Wed, 14 Jul 2021 14:23:36 -0700 (PDT) Received: from grain.localdomain ([5.18.199.94]) by smtp.gmail.com with ESMTPSA id c30sm251139lfv.19.2021.07.14.14.23.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Jul 2021 14:23:33 -0700 (PDT) Received: by grain.localdomain (Postfix, from userid 1000) id 87D375A001E; Thu, 15 Jul 2021 00:23:32 +0300 (MSK) To: tml Date: Thu, 15 Jul 2021 00:23:23 +0300 Message-Id: <20210714212328.701280-1-gorcunov@gmail.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [RFC v5 0/5] limbo: implement packets filtering 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 another rfc for incoming packets filtering. I added locking for terms manipulations. The filter itself yet implements only promote requests filtering but I'll extend it later together with tests. For now it's early draft for comments gathering. branch gorcunov/gh-6036-rollback-confirm-notest Cyrill Gorcunov (5): latch: add latch_is_locked helper say: introduce panic_on helper limbo: gather promote tracking into a separate structure limbo: order access to the promote terms limbo: filter incoming requests src/box/applier.cc | 13 +++-- src/box/box.cc | 3 +- src/box/txn_limbo.c | 88 ++++++++++++++++++++++++++------- src/box/txn_limbo.h | 113 ++++++++++++++++++++++++++++++++++--------- src/lib/core/latch.h | 11 +++++ src/lib/core/say.h | 1 + 6 files changed, 185 insertions(+), 44 deletions(-) -- 2.31.1