Skip to content
Snippets Groups Projects
Commit 553dfbe9 authored by Alexander V. Tikhonov's avatar Alexander V. Tikhonov Committed by Kirill Yukhin
Browse files

test: replication/misc fix for high load

Fixed test replication/misc to be able to run it on
hosts under high load. Changed downstream check to
use test_run:wait_downstream() function, to wait for
certain box.info.replication values to fix the error:

[050] replication/misc.test.lua                                       [ fail ]
[050]
[050] Test failed! Result content mismatch:
[050] --- replication/misc.result	Thu Jun  6 06:46:54 2019
[050] +++ replication/misc.reject	Fri Jun  7 05:55:00 2019
[050] @@ -622,7 +622,7 @@
[050]  ...
[050]  box.info.replication[2].downstream.status
[050]  ---
[050] -- stopped
[050] +- follow
[050]  ...
[050]  test_run:cmd("stop server replica")
[050]  ---

Closes #4277
parent 31ab6ea9
No related branches found
No related tags found
No related merge requests found
......@@ -620,9 +620,9 @@ test_run:wait_log("replica", "REPLICASET_UUID_MISMATCH", nil, 1.0)
---
- REPLICASET_UUID_MISMATCH
...
box.info.replication[2].downstream.status
test_run:wait_downstream(2, {status = 'stopped'})
---
- stopped
- true
...
test_run:cmd("stop server replica")
---
......
......@@ -251,7 +251,7 @@ _ = box.space._schema:replace{'cluster', tostring(uuid.new())}
-- master believes replica is in cluster, but their cluster UUIDs differ.
test_run:cmd("start server replica")
test_run:wait_log("replica", "REPLICASET_UUID_MISMATCH", nil, 1.0)
box.info.replication[2].downstream.status
test_run:wait_downstream(2, {status = 'stopped'})
test_run:cmd("stop server replica")
test_run:cmd("cleanup server replica")
......
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