From: Kirill Yukhin <kyukhin@tarantool.org>
To: "Alexander V. Tikhonov" <avtikhon@tarantool.org>
Cc: Oleg Piskunov <o.piskunov@tarantool.org>,
tarantool-patches@dev.tarantool.org,
Alexander Turenko <alexander.turenko@tarantool.org>
Subject: Re: [Tarantool-patches] [PATCH v2] test: fix flaky replication/status.test.lua
Date: Mon, 15 Jun 2020 11:57:29 +0300 [thread overview]
Message-ID: <20200615085729.7gzvxf2patph6hbp@tarantool.org> (raw)
In-Reply-To: <e9f7d9e3ae84e2b1c2354e79bbcf3e3832c75910.1591720343.git.avtikhon@tarantool.org>
Hello,
On 09 июн 19:34, Alexander V. Tikhonov wrote:
> Found issue:
>
> [009] --- replication/status.result Wed May 6 09:03:18 2020
> [009] +++ replication/status.reject Tue May 12 15:55:09 2020
> [009] @@ -307,11 +307,12 @@
> [009] ...
> [009] r.upstream.status == "stopped"
> [009] ---
> [009] -- true
> [009] +- false
> [009] ...
> [009] r.upstream.message:match('Duplicate') ~= nil
> [009] ---
> [009] -- true
> [009] +- error: '[string "return r.upstream.message:match(''Duplicate'') ..."]:1: attempt
> [009] + to index field ''message'' (a nil value)'
> [009] ...
> [009] test_run:cmd('switch default')
> [009] ---
>
> To check the upstream status and it's message need to wait until an
> upstream appears. This prevents an attempt to index a nil value when
> one of those functions are called before a record about a peer appears
> in box.info.replication. It was observed on test:
> replication/show_error_on_disconnect
> after commit
> c6bea65f8ef5f6c737cf70c0127189d0ebcbc36e ('replication: recfg with 0
> quorum returns immediately').
>
> Closes #4969
LGTM.
I've checked your patch into 1.10, 2.3, 2.4 and master.
--
Regards, Kirill Yukhin
prev parent reply other threads:[~2020-06-15 8:57 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-09 16:34 Alexander V. Tikhonov
2020-06-09 19:21 ` Sergey Bronnikov
2020-06-15 8:57 ` 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=20200615085729.7gzvxf2patph6hbp@tarantool.org \
--to=kyukhin@tarantool.org \
--cc=alexander.turenko@tarantool.org \
--cc=avtikhon@tarantool.org \
--cc=o.piskunov@tarantool.org \
--cc=tarantool-patches@dev.tarantool.org \
--subject='Re: [Tarantool-patches] [PATCH v2] test: fix flaky replication/status.test.lua' \
/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