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 77A8468713; Mon, 1 Feb 2021 13:02:14 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 77A8468713 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1612173734; bh=hfbdKgo2EZd440xsmX381f7zZn4zOV0pVqelzFzcM64=; 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=vIy79bpgD2+z7e7Khap4HKYx8tuaVoMIHH0oY/h0I+rg7jIlaiHsNhZKFs0kGRmO2 7Sc0tRCkX1F3ikBQNri1Lm/YMhrkGe2guA+0Vg665/6SpnBO2rI2Fn4Yp8V499c2L1 moklruC88202MLDre9SW/Ygc0z2TcMZO2q3UN/Xk= Received: from mail-lf1-f44.google.com (mail-lf1-f44.google.com [209.85.167.44]) (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 2B483795FF for ; Mon, 1 Feb 2021 13:01:20 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 2B483795FF Received: by mail-lf1-f44.google.com with SMTP id h12so21844347lfp.9 for ; Mon, 01 Feb 2021 02:01:20 -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=Zzw4ZdfWTcO7Z/vmJ99t1/SyHzC5J5k922Zv9bH9V10=; b=EH8iaFqDzIzxMBaIKAtSQfp2BzmZP5opD4mTlSG8rXzJlK1auOlA3eajDnB0ErMkje L6jovb6c2qFWCY9e2knBg8AcaAcQVLegeY6DVAcVgcyg7mBiv/x6ESotEC3pBjOJxMhh 5TyWM35HdRom2yLNHnQZaerZRloJNNvBg5JIS+80nI3holcbFg9LR0V339Fx0dRI9N/s 86X78Pu0PSMLZleRNZs3N0KMFoUTsMmrxp2KyWUmM/eeTr8+Hi5Ks2Ps/w6PpzEX3wWr Z7FgVtTe8UMo6JTbJXd80T8x3HZctFgsjkDZr8y8vgBioPXz68oQ9Oa29oArlEXKoVqX R5pg== X-Gm-Message-State: AOAM533QSQLbReCZ/oHoYJD875mBg2AhBM9J+GHcZfMz51VnIGIKJoJs YbubVMxqzs7RNW1Dp0RE+t1Qa5vCXDALVA== X-Google-Smtp-Source: ABdhPJz0E50vPcipsNZABqndEqJp0ibJ7/SuBJlyX5N858KqwcOc8o7Icq6r3uUD07dmu7xnDezmgA== X-Received: by 2002:a05:6512:2287:: with SMTP id f7mr7752711lfu.40.1612173679128; Mon, 01 Feb 2021 02:01:19 -0800 (PST) Received: from grain.localdomain ([5.18.103.226]) by smtp.gmail.com with ESMTPSA id t78sm2951906lff.130.2021.02.01.02.01.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Feb 2021 02:01:17 -0800 (PST) Received: by grain.localdomain (Postfix, from userid 1000) id 0DDA45601BE; Mon, 1 Feb 2021 13:00:40 +0300 (MSK) To: tml Date: Mon, 1 Feb 2021 13:00:37 +0300 Message-Id: <20210201100037.212301-4-gorcunov@gmail.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210201100037.212301-1-gorcunov@gmail.com> References: <20210201100037.212301-1-gorcunov@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH v2 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..9b5418da4 100644 --- a/test/replication/status.result +++ b/test/replication/status.result @@ -186,6 +186,14 @@ test_run:wait_cond(function() \ --- - true ... +-- gh-5447: 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..1ecf85382 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) +-- gh-5447: 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