Skip to content
Snippets Groups Projects
Commit 6bb2e9f7 authored by Nikita Zheleztsov's avatar Nikita Zheleztsov Committed by Serge Petrenko
Browse files

test: fix fail of gh_4669_applier_reconnect_test

In the test we start replicas only with master in box.cfg.replication.
We cannot use bootstrap_strategy = 'auto' mode, which is default, as
it properly works only when all participants of the cluster are listed
in replication parameter. Sometimes, when one replica connects to the
master, the other one has already successfully joined, so the first
replica sees in ballot, that it doesn't have all nodes from cluster
in box.cfg.replication and fails to start.

Let's use 'legacy' bootstrap strategy for now.

Closes tarantool/tarantool-qa#310

NO_DOC=test-fix
NO_CHANGELOG=test-fix

(cherry picked from commit 1051aa7f)
parent baf7564b
No related branches found
Tags 2.11.1-entrypoint
No related merge requests found
......@@ -8,6 +8,7 @@ g.before_each(function()
g.cluster = cluster:new({})
g.master = g.cluster:build_server({alias = 'master'})
local box_cfg = {
bootstrap_strategy = 'legacy',
replication = server.build_listen_uri('master'),
}
g.replica = g.cluster:build_server({alias = 'replica', box_cfg = box_cfg})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment