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 6FC8C6EC56; Thu, 18 Mar 2021 21:41:44 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 6FC8C6EC56 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1616092904; bh=dIXw01m2UCreoEvLZGxeGsYgvuFfSSoWOajTsn7ap+g=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=j15EeD0UDeXG/wsdHAeFs+j/EXqEoj4Bs/hqh4meS7evGyMANQQX0VLmfVaINv4PX FOzZ0UddN/SVemTtY3hQBIGSoLo2YqubOaGI3hyTP8aMFJ4WD4q5vSk7SlAR4jxAWU qHeKHEo8JiEvxwfyBpJf44Y2HfARMJ4kav+sQePA= 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 C0D016EC56 for ; Thu, 18 Mar 2021 21:41:42 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org C0D016EC56 Received: by mail-lf1-f43.google.com with SMTP id o10so6154696lfb.9 for ; Thu, 18 Mar 2021 11:41:42 -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=REDWIJYnkjkrDYrJBFaEaDQOBPuqbXA4QJ4adlcKTzs=; b=kZTs/MyAVz63lhhqNYDyUwyfD+9VIwqy1usCPlw9reffGmJFyfoFD1bJjNnS55FmvC zLz6iUryvQpesF2VOefTL1MkEKCQxi3RhIcsSDkBICs0fVwoVAWpXLmIxBeRZW2bgGP7 ix1hXLHwVq6Uu1RTeW1UybA7eNeWbSXFSGW4IP4eWmlReVdYtW0FK8Kzk7HDGshgMDNi Z0X89YXrWFewhEbH3R0gDtQkfHo/SmRSszO940xGXtEeJtwSrJ9Do4OP2JLg9U+yuPZm THAAdQApH+/Dd9dYK8C1rUHKtPWh0DDjdhS8eGW/qohyxgDgw3/e+H1nfurf9nX6tMu2 p1Ug== X-Gm-Message-State: AOAM532DK7zHvj0IRSBTD2fEqROIY2TMIJLGN9OLzyLYveS3pl4YVgUW l5wSgoY5lFP3KLYJb3EmwmI= X-Google-Smtp-Source: ABdhPJzkK6AQZHhZNoFehsfo+oTMVz9xpLPk5U0rELkNKD2d2fNym6omGDOZCbLqGqcWzofB8PfuiA== X-Received: by 2002:a05:6512:b93:: with SMTP id b19mr2324806lfv.432.1616092902242; Thu, 18 Mar 2021 11:41:42 -0700 (PDT) Received: from grain.localdomain ([5.18.171.94]) by smtp.gmail.com with ESMTPSA id e20sm330985lfc.20.2021.03.18.11.41.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Mar 2021 11:41:41 -0700 (PDT) Received: by grain.localdomain (Postfix, from userid 1000) id CCEEB560106; Thu, 18 Mar 2021 21:41:39 +0300 (MSK) To: tml Date: Thu, 18 Mar 2021 21:41:36 +0300 Message-Id: <20210318184138.1077807-1-gorcunov@gmail.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH 0/2] gc/xlog: delay xlog cleanup until relays are subscribed 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 , Mons Anderson Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" Guys, take a look please once time permit. issue https://github.com/tarantool/tarantool/issues/5806 branch gorcunov/gh-5806-xlog-gc Cyrill Gorcunov (2): gc/xlog: delay xlog cleanup until relays are subscribed test: add a test for wal_cleanup_delay option src/box/box.cc | 11 + src/box/gc.c | 75 +++- src/box/gc.h | 30 ++ src/box/lua/info.c | 8 + src/box/lua/load_cfg.lua | 3 + src/box/relay.cc | 20 ++ src/box/replication.cc | 2 + test/app-tap/init_script.result | 1 + test/box/admin.result | 2 + test/box/cfg.result | 4 + test/replication/gh-5806-master.lua | 13 + test/replication/gh-5806-slave.lua | 13 + test/replication/gh-5806-xlog-cleanup.result | 336 ++++++++++++++++++ .../replication/gh-5806-xlog-cleanup.test.lua | 148 ++++++++ 14 files changed, 663 insertions(+), 3 deletions(-) create mode 100644 test/replication/gh-5806-master.lua create mode 100644 test/replication/gh-5806-slave.lua create mode 100644 test/replication/gh-5806-xlog-cleanup.result create mode 100644 test/replication/gh-5806-xlog-cleanup.test.lua base-commit: a0ade20662e0d55c912a72656e6dc75defd7c7f4 -- 2.30.2