[Tarantool-patches] [PATCH] replication: fix flaky gh-3055-election-promote test

Cyrill Gorcunov gorcunov at gmail.com
Mon Aug 9 10:45:16 MSK 2021


On Mon, Aug 09, 2021 at 10:42:05AM +0300, Serge Petrenko wrote:
> Found the following error in our CI:
> 
> [001] Test failed! Result content mismatch:
> [001] --- replication/gh-3055-election-promote.result	Mon Aug  2 17:52:55 2021
> [001] +++ var/rejects/replication/gh-3055-election-promote.reject	Mon Aug  9 10:29:34 2021
> [001] @@ -88,7 +88,7 @@
> [001]   | ...
> [001]  assert(not box.info.ro)
> [001]   | ---
> [001] - | - true
> [001] + | - error: assertion failed!
> [001]   | ...
> [001]  assert(box.info.election.term > term)
> [001]   | ---
> [001]
> 
> The problem was the same as in recently fixed election_qsync.test
> (commit 096a0a7d5e2442656d228658f89f0c7066c60b16): PROMOTE is written to
> WAL asynchronously, and box.ctl.promote() returns earlier than this
> happens.

Ack.


More information about the Tarantool-patches mailing list