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 813846465D; Thu, 21 Jan 2021 20:20:06 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 813846465D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1611249606; bh=yR3fWHW+DWfTMUCDpPrwjudz2BKafkKGS87+hHJzeOg=; h=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=kTreLM043l6BWv0ZSTgLyJnwYdGIWcYT4V/7mtLPv8m/2Ye9Z8+kc1sLtFBHT7lOh TG6eLfZg981A/Y7JL15eyZ5BWcYJcMumfW4+lWx/J6z2eJWjvHeURz9auaEx/Bh9kh 1Z6dzhyfP/QKsG7TQqvGts09hZh/Ikc0KFsD0SPM= Received: from mail-lj1-f170.google.com (mail-lj1-f170.google.com [209.85.208.170]) (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 7B910CC307 for ; Thu, 21 Jan 2021 20:18:53 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 7B910CC307 Received: by mail-lj1-f170.google.com with SMTP id j3so3365474ljb.9 for ; Thu, 21 Jan 2021 09:18:53 -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:in-reply-to :references:mime-version:content-transfer-encoding; bh=C6Pt6n9hXyvVUdi45xWECZ+0Pf2+VcDJ8clUNoWZriY=; b=Hp6ttKjsuPTUNaxKA0I+tNvOOccBJYYK0m/g/JDjd2jo3yEHWNQZc2aCpnVcvck+3s C4iblrs+C+FqQi5+dilNbG9uo+xp9b3k34AhREmlIr4eSZV6LxXSLZ8cYWKBi8xYgNRi dfQFGz6WAks2S5Rbpp4V6qJZFII4q5SR6AGW9MeOj5zScGKHgmLHNeM1pvzuMnQnfFwI us1duycXQ+8uP8vD2tfYLUm0xjGWaagszznsB8nddhwQ1K5XkxGhthGnrWneLweZsaHI p62qT5uU7PT40CfH/vA2lFW6DxBxCVicmjdCKvRgghhTngPx9IIkpqr/oGt4czbKPs8l w4gA== X-Gm-Message-State: AOAM532O9gNmjt1KbSma8OXyKRISgfVCsNcr3wPT1oKxXu+qMq/N/LhC U+xMft35Ts+/ZNgdqSg186pJB0MHWQE= X-Google-Smtp-Source: ABdhPJysj9QucxH9yu/y/T60zTDjs2yn/p2LpaPb6fxyr7XducZnWfqm+69/tyjU9LopIX0d1wdJ/A== X-Received: by 2002:a2e:86d2:: with SMTP id n18mr174487ljj.398.1611249532228; Thu, 21 Jan 2021 09:18:52 -0800 (PST) Received: from grain.localdomain ([5.18.91.94]) by smtp.gmail.com with ESMTPSA id c8sm587056lfr.138.2021.01.21.09.18.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Jan 2021 09:18:50 -0800 (PST) Received: by grain.localdomain (Postfix, from userid 1000) id 04567560186; Thu, 21 Jan 2021 20:17:59 +0300 (MSK) To: tml Date: Thu, 21 Jan 2021 20:17:53 +0300 Message-Id: <20210121171753.186891-5-gorcunov@gmail.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210121171753.186891-1-gorcunov@gmail.com> References: <20210121171753.186891-1-gorcunov@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH 3/3] test: replication/status -- fetch downstream lag field 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" Extend the test to observe downstream.lag value. Part-of #5447 Signed-off-by: Cyrill Gorcunov --- test/replication/status.result | 8 ++++++++ test/replication/status.test.lua | 6 ++++++ 2 files changed, 14 insertions(+) diff --git a/test/replication/status.result b/test/replication/status.result index a8c515dbb..e59694730 100644 --- a/test/replication/status.result +++ b/test/replication/status.result @@ -186,6 +186,14 @@ test_run:wait_cond(function() \ --- - true ... +-- once replication vclock is reached there +-- should be non infinity downstream lag, set +-- it to some sane value but not short since +-- there might be network lags on a low level +replica.downstream.lag ~= nil and replica.downstream.lag < 60 +--- +- true +... -- -- Replica -- diff --git a/test/replication/status.test.lua b/test/replication/status.test.lua index 431463d8a..0525694bb 100644 --- a/test/replication/status.test.lua +++ b/test/replication/status.test.lua @@ -73,6 +73,12 @@ test_run:wait_cond(function() \ r[replica_id] == box.info.vclock[replica_id]) \ end) or require('log').error(box.info) +-- once replication vclock is reached there +-- should be non infinity downstream lag, set +-- it to some sane value but not short since +-- there might be network lags on a low level +replica.downstream.lag ~= nil and replica.downstream.lag < 60 + -- -- Replica -- -- 2.29.2