Skip to content

Commit 26a3b08

Browse files
committed
test: stabilize replication/rebootstrap test
The commit 89cd7f4 ("replication: do not account booting replicas in sync quorum") allowed replicas to leave orphan mode without waiting for everyone listed in box.cfg.replication. As a result, bootstrap_leader test started exiting too early, because it relied on one of the replicas staying in orphan mode until all the others finish bootstrap. Fix it. While we're at it, remove the test from fragile list. It hasn't flaked since long ago, excluding the last couple of weeks, which's fixed now. Closes tarantool/tarantool-qa#56 NO_CHANGELOG=flaky test NO_DOC=flaky test (cherry picked from commit 58d9312)
1 parent 1f726cf commit 26a3b08

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

test/replication/rebootstrap.result

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ test_run:cmd('switch default')
4040
---
4141
- true
4242
...
43+
test_run:wait_fullmesh(SERVERS)
44+
---
45+
...
4346
test_run:drop_cluster(SERVERS)
4447
---
4548
...

test/replication/rebootstrap.test.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,5 @@ test_run:cmd('switch rebootstrap1')
1818
box.info.status -- running
1919

2020
test_run:cmd('switch default')
21+
test_run:wait_fullmesh(SERVERS)
2122
test_run:drop_cluster(SERVERS)

test/replication/suite.ini

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,6 @@ fragile = {
9999
"gh-5426-election-on-off.test.lua": {
100100
"issues": [ "gh-5506" ]
101101
},
102-
"rebootstrap.test.lua": {
103-
"issues": [ "gh-5524" ]
104-
},
105102
"qsync_with_anon.test.lua": {
106103
"issues": [ "gh-5582" ]
107104
},

0 commit comments

Comments
 (0)