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 830F068713; Mon, 1 Feb 2021 13:00:45 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 830F068713 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1612173645; bh=cdcaS+Gid6Tzc5FTuyeSAEtXx3+v/NP5ZsH1KZU03Pw=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=xK4op+tHoaaCq6Rk2JX2g19VEFis7HFFDJ6SnGtbqNIzjfvPAExmEiPYi5zqnK/ne /tbPvA60EbY4m4iBcy7swjv+K9x/OzKG+oz1b7qj9H1giERtWnbAak4RScURWgXf9/ aq+luwPgIdHsW40jxiJLEDXmFO31nxcyJieHu6UE= Received: from mail-lf1-f46.google.com (mail-lf1-f46.google.com [209.85.167.46]) (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 B967B68713 for ; Mon, 1 Feb 2021 13:00:43 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org B967B68713 Received: by mail-lf1-f46.google.com with SMTP id a8so21846022lfi.8 for ; Mon, 01 Feb 2021 02:00:43 -0800 (PST) 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=ZEsiSQEqOgDJ4VP0n+3xIT6daAeOF6wengJrZGFoVPA=; b=tNxKnYe5HDHpFXWjhnSM67r0z9ZGSSXNsbfk5eGL2JjUnwXqRCTbSgZ/EKRdyHQNgW suedCIZI6Gdv7id9EwPltdfe3gpGngi3Oi6ZKQOBs4pTt74cp0agD7iEYFMJMM4hUG5u b+m15Qa5tzgRxkLoyd/8TouBGu9RYsOZSvXSeMV2873oTtKRnfnJt/1/P9WoJGu1yaG6 2JFpq/yVb2n84TATQBLm/BOYG08HPOq9gl3aDIC1ow7bna1t7kT7l9Y3mBd04aehmctI Nns3wYZ6DVfh9JjeAVe0sVPJ2qbovwTmKZkvXT1u/VLsakBVYgmI4ynU5+LEg8F/jSW5 Gcxw== X-Gm-Message-State: AOAM5310lIIwhIhDUXeM/fYH3F3J3bMYwzNm+UEzyz04w4hZBn9APS6A /7kVITQ2sz2w56Gz0s4Xgrm1xGUDATcBLA== X-Google-Smtp-Source: ABdhPJzI6fTbJ0djkYi5P1a2zrw1aRkG1WFHcWkeyzQa3/NxQlshKblYEkY4zT66TY4OBvYUtTFJFg== X-Received: by 2002:ac2:4c92:: with SMTP id d18mr7772147lfl.176.1612173642437; Mon, 01 Feb 2021 02:00:42 -0800 (PST) Received: from grain.localdomain ([5.18.103.226]) by smtp.gmail.com with ESMTPSA id 196sm2931112lfj.219.2021.02.01.02.00.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Feb 2021 02:00:40 -0800 (PST) Received: by grain.localdomain (Postfix, from userid 1000) id F2D15560119; Mon, 1 Feb 2021 13:00:39 +0300 (MSK) To: tml Date: Mon, 1 Feb 2021 13:00:34 +0300 Message-Id: <20210201100037.212301-1-gorcunov@gmail.com> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH v2 0/3] box/info: report replication.X.downstream.lag 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" Vlad, Serge, take a look once time permit. v2: - provide special helper xrow_encode_vclock_timed to send timestamp with applier ack message - document new entry - style fix in test issue https://github.com/tarantool/tarantool/issues/5447 branch gorcunov/gh-5447-relay-lag-2 Cyrill Gorcunov (3): applier: encode timestamp into vclock message box/info: report replication.X.downstream.lag value test: replication/status -- fetch downstream lag field src/box/applier.cc | 3 ++- src/box/lua/info.c | 8 ++++++++ src/box/relay.cc | 16 ++++++++++++++++ src/box/relay.h | 8 ++++++++ src/box/xrow.c | 5 ++++- src/box/xrow.h | 21 +++++++++++++++++++-- test/replication/status.result | 8 ++++++++ test/replication/status.test.lua | 6 ++++++ 8 files changed, 71 insertions(+), 4 deletions(-) base-commit: fbc04dfbda911195ec1a6a1e0e912e48eb6bb73c -- 2.29.2