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 063736465D; Thu, 21 Jan 2021 20:19:36 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 063736465D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1611249576; 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=vxqTHtcyEeY87y+ptL8yhRL0O71QbP9Sbt92MWDn6Hhhtc3lpNq+gFXz0auyMTI0w 6Ianpa8VnYxAyp9DnqgPrfLlRw3WBMYkPiqfmeu2LQc5FnD1B9LuIcIQ+YTZaP7V17 OzEe3Py1ltvThcoK2Cvc3L3AAmBAG5Ulr5X8te24= Received: from mail-lf1-f54.google.com (mail-lf1-f54.google.com [209.85.167.54]) (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 0ECD585DED for ; Thu, 21 Jan 2021 20:18:41 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 0ECD585DED Received: by mail-lf1-f54.google.com with SMTP id b26so3568017lff.9 for ; Thu, 21 Jan 2021 09:18:41 -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=pgBC2NapZPUBRivpX3b7FNZq3DLKl1TnGttCgMXbAa8kf0DSNq2VxBDoUbRRhfmxQL 30bIxGnBaE6GfWa0TMnPg7gXWEtD9cQ+Kv2l9OVKKdeX8nS7UsBzOkSwRAeLlPxwsqXk Xav3E6kbgQKH3bxebqqtZeeEwHama3Aw4K7FmnQLF2Up6jMG31N9w+FgWvTVPjfYofHd 8P4HUgXWWdl9Vr3hZFc5M6kcqb5tKnBr2lZI9nQDmHotyck/6UKik01cZ38/1FITnyid yjOsPi1uSA80PD9zrncYm2gRbGw9FazdvC05zNruI/pvDfLYP5d0sdmD8mhm3B1f21zT Xzrw== X-Gm-Message-State: AOAM530L3jnf+aqjmDc/WpDYdqUUkOKeXdb8X7wbzeL6R4mMykFBOuOd wci0cjXpX2zvGeJdgRrddLFJ+1DIIQA= X-Google-Smtp-Source: ABdhPJx1jopFx2+pMC0kS2QWZ20IKhGehGC2MDJgsTvYqgBh8Yor5SL9/tsTZVtRBIyFnMconuObuA== X-Received: by 2002:ac2:559a:: with SMTP id v26mr95845lfg.133.1611249519767; Thu, 21 Jan 2021 09:18:39 -0800 (PST) Received: from grain.localdomain ([5.18.91.94]) by smtp.gmail.com with ESMTPSA id v14sm270595lfo.210.2021.01.21.09.18.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Jan 2021 09:18:38 -0800 (PST) Received: by grain.localdomain (Postfix, from userid 1000) id 016CF560181; Thu, 21 Jan 2021 20:17:59 +0300 (MSK) To: tml Date: Thu, 21 Jan 2021 20:17:52 +0300 Message-Id: <20210121171753.186891-4-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