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 5FB236EC58; Tue, 22 Jun 2021 18:22:53 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 5FB236EC58 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1624375373; bh=cxtCNfxSDTQRQtzXUz078EpzNJ5rShkl3WrETthwwG4=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=uN/H1mWVs6X4gs8PzqVkDTm7Yzw2OIzxIr14i14y1ghvMPHP42J6fRM05oOWH21Ds +IOZllhMfP6jSPVdUeJ+B9M2H9prF92Yb1kyJ9/AYHK1eC/t17PMrkowUh1/zuhxXC T6q2rxE83IDApOurAIuOElzFYllInRynHmGYd0VQ= Received: from mail-lj1-f180.google.com (mail-lj1-f180.google.com [209.85.208.180]) (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 9BBE86EC58 for ; Tue, 22 Jun 2021 18:22:51 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 9BBE86EC58 Received: by mail-lj1-f180.google.com with SMTP id f13so3550872ljp.10 for ; Tue, 22 Jun 2021 08:22:51 -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=y6oYuRGNNZdsNNBsywTpzzYCoD6ce9YltdJ/QZxs90Y=; b=ewbtsojjENke77By/Knu97HxI/Gm0OrDLwIv8UVvnH0DvaLDQYraje0VD848zU/Ztl ojgArqdStUTGpeC7sGHq8s1REcryB22JhIkYGWxgIgQtx0W6GzvUynTcEU8D42pK3pCs 8+tGqWiJNJbukSFN1CjwApfBYKSZtPw7fvwNDqwBFEGdSsdD/n/y+26Wib5pmYtboW7B J0oIkU6duNzVCBVF/xn5ccTKs8ECDi9zybHuxDa9PLeaUpYvk0F4/N/FjckH3F4YbBuL CH4FVXSpGu9TJMQ6eQdheD1JXsfJqrXTpSvrbzSXw0+rVoyKKkCFSMwbzAO/wvuuDP/R zOhA== X-Gm-Message-State: AOAM5336ttGE4VPWrUR8YqPm+VD2WY67IgbqYe6YAXBgq5CeG1ml9QRq f0C9tm631s8qHfghyPHhYlmg1kNGiHA= X-Google-Smtp-Source: ABdhPJysNhIzEYm/0PO/iom9rPWxnvEAeAd4Yrnzox5jOCFtnyA+EDjKZyImxPkZliV9NzQ8xK2CZQ== X-Received: by 2002:a2e:9188:: with SMTP id f8mr3823479ljg.178.1624375370404; Tue, 22 Jun 2021 08:22:50 -0700 (PDT) Received: from grain.localdomain ([5.18.199.94]) by smtp.gmail.com with ESMTPSA id j9sm2451587lfm.70.2021.06.22.08.22.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Jun 2021 08:22:48 -0700 (PDT) Received: by grain.localdomain (Postfix, from userid 1000) id 17CEE5A0020; Tue, 22 Jun 2021 18:22:48 +0300 (MSK) To: tml Date: Tue, 22 Jun 2021 18:22:44 +0300 Message-Id: <20210622152246.497955-1-gorcunov@gmail.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH v10 0/2] relay: provide downstream lag information 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 the latest version of "downstream lag" series, hopefully everything is fine right now. I put only changes against v9 which could be found here https://lists.tarantool.org/tarantool-patches/20210617154835.315576-1-gorcunov@gmail.com/ v10: - since we're using error injection exclude the test from release build (by Vlad) - provide @applier argument for applier_apply_tx helper since we need to pass replica_id into apply_synchro_row/apply_plain_tx (the argument been removed in b35e4708e8419759bf2ec024d1f91ae7a356af79 because we didn't need it at that moment). issue https://github.com/tarantool/tarantool/issues/5447 branch gorcunov/gh-5447-relay-lag-10 Cyrill Gorcunov (2): applier: send transaction's first row WAL time in the applier_writer_f relay: provide information about downstream lag .../unreleased/gh-5447-downstream-lag.md | 6 + src/box/applier.cc | 101 +++++++++++--- src/box/lua/info.c | 3 + src/box/relay.cc | 41 ++++++ src/box/relay.h | 6 + src/box/replication.cc | 1 + src/box/replication.h | 5 + .../replication/gh-5447-downstream-lag.result | 124 ++++++++++++++++++ .../gh-5447-downstream-lag.test.lua | 56 ++++++++ test/replication/suite.ini | 2 +- 10 files changed, 327 insertions(+), 18 deletions(-) create mode 100644 changelogs/unreleased/gh-5447-downstream-lag.md create mode 100644 test/replication/gh-5447-downstream-lag.result create mode 100644 test/replication/gh-5447-downstream-lag.test.lua base-commit: e6b74fd44c4e3d9304363ef3d367600bb9b0538d -- 2.31.1