Skip to content
Snippets Groups Projects
Commit f0b3a7b6 authored by Alexander Turenko's avatar Alexander Turenko Committed by Alexander Turenko
Browse files

test: wait until leaving orphan in cluster:start()

Most of times the instances are already in the `'running'` status after
`cluster:start()`. However, sometimes an instance is not connected yet
to a majority of peers of its replicaset and has the `'orphan'` status.

A test unlikely assumes this situation, because it is rare. Let's wait
for the `'running'` status by default to stay on the safe side.

The new option `wait_until_running` (default is `true`) allows to opt
out from this behavior. It is set to `false` if `wait_until_ready` is
`false`.

This change improves stability of
`config-luatest/anonymous_replica_test.lua`.

Note: `wait_until_ready` waits until `config:info().status` will be
`'ready'` or `'check_warnings'` for all the instances of the cluster.

Next, `wait_until_running` on a replicaset bootstrap waits until all the
instances successfully connect to a majority of peers (see the
`replication.bootstrap_strategy` option for details).

NO_DOC=testing helper change
NO_CHANGELOG=see NO_DOC
NO_TEST=no code is added to tarantool itself
parent 3742bbb6
No related branches found
No related tags found
No related merge requests found
Loading
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