From: Kirill Yukhin <kyukhin@tarantool.org>
To: "Alexander V. Tikhonov" <avtikhon@tarantool.org>
Cc: tarantool-patches@dev.tarantool.org
Subject: Re: [Tarantool-patches] [PATCH v1] test: flaky replication/status.test.lua status
Date: Fri, 11 Sep 2020 13:36:44 +0300 [thread overview]
Message-ID: <20200911103644.tthafcu6iried62o@tarantool.org> (raw)
In-Reply-To: <87a0a297a6c954f37bed6a79f81949a87196a218.1599440334.git.avtikhon@tarantool.org>
Hello,
On 07 сен 04:00, Alexander V. Tikhonov wrote:
> On heavy loaded hosts found the following 3 issues:
>
> line 174:
>
> [026] --- replication/status.result Thu Jun 11 12:07:39 2020
> [026] +++ replication/status.reject Sun Jun 14 03:20:21 2020
> [026] @@ -174,15 +174,17 @@
> [026] ...
> [026] replica.downstream.status == 'follow'
> [026] ---
> [026] -- true
> [026] +- false
> [026] ...
>
> It happened because replication downstream status check occurred too
> early. To give the replication status check routine ability to reach
> the needed 'follow' state, it need to wait for it using
> test_run:wait_downstream() routine.
>
> line 178:
>
> [024] --- replication/status.result Mon Sep 7 00:22:52 2020
> [024] +++ replication/status.reject Mon Sep 7 00:36:01 2020
> [024] @@ -178,11 +178,13 @@
> [024] ...
> [024] replica.downstream.vclock[master_id] == box.info.vclock[master_id]
> [024] ---
> [024] -- true
> [024] +- error: '[string "return replica.downstream.vclock[master_id] =..."]:1: attempt to
> [024] + index field ''vclock'' (a nil value)'
> [024] ...
> [024] replica.downstream.vclock[replica_id] == box.info.vclock[replica_id]
> [024] ---
> [024] -- true
> [024] +- error: '[string "return replica.downstream.vclock[replica_id] ..."]:1: attempt to
> [024] + index field ''vclock'' (a nil value)'
> [024] ...
> [024] --
> [024] -- Replica
>
> It happened because replication vclock field was not exist at the moment
> of its check. To fix the issue, vclock field had to be waited to be
> available using test_run:wait_cond() routine. Also the replication data
> downstream had to be read at the same moment.
>
> line 224:
>
> [014] --- replication/status.result Fri Jul 3 04:29:56 2020
> [014] +++ replication/status.reject Mon Sep 7 00:17:30 2020
> [014] @@ -224,7 +224,7 @@
> [014] ...
> [014] master.upstream.status == "follow"
> [014] ---
> [014] -- true
> [014] +- false
> [014] ...
> [014] master.upstream.lag < 1
> [014] ---
>
> It happened because replication upstream status check occurred too
> early. To give the replication status check routine ability to reach
> the needed 'follow' state, it need to wait for it using
> test_run:wait_upstream() routine.
>
> Removed test from 'fragile' test_run tool list to run it in parallel.
>
> Closes #5110
I've checked your patch into 1.10, 2.4, 2.5 and master.
--
Regards, Kirill Yukhin
prev parent reply other threads:[~2020-09-11 10:36 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-07 1:00 Alexander V. Tikhonov
2020-09-09 15:41 ` Serge Petrenko
2020-09-11 10:36 ` Kirill Yukhin [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200911103644.tthafcu6iried62o@tarantool.org \
--to=kyukhin@tarantool.org \
--cc=avtikhon@tarantool.org \
--cc=tarantool-patches@dev.tarantool.org \
--subject='Re: [Tarantool-patches] [PATCH v1] test: flaky replication/status.test.lua status' \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox