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

test: fix flaky gh_7581_downstream_lag_test

The test starts the cluster and immediately tries to create a space
on master. Sometimes it fails with "Can't modify data on a read-only
instance - it is an orphan" error.

When the instance is not in sync with sufficient number of nodes
it has orphan status, which means the instance is read-only. Sometimes,
the instance doesn't have enough time to connect to all instances and
get out of orphan state.

Let's add waiting until every node is connected to every other node
in the replica set.

Closes tarantool/tarantool-qa#326

NO_CHANGELOG=test
NO_DOC=test
parent d6845427
No related branches found
No related tags found
No related merge requests found
......@@ -30,6 +30,7 @@ g.before_each(function(g)
box_cfg = box_cfg,
})
g.cluster:start()
g.cluster:wait_for_fullmesh()
g.server1:exec(function()
box.schema.space.create("test")
box.space.test:create_index("pk")
......
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