-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Labels
Description
Test replication-luatest/bootstrap_strategy_test.lua is flaky
- branch: master
- OS and version: MacOS
- Architecture: reproduces on both amd64, arm
- gc64: any
Running the test a lot in parallel shows the following error:
[032] not ok 7 gh-7999-bootstrap-strategy-config.test_replication_without_bootstrap_leader
[032] # ...nko/Source/sptnt/test-run/lib/luatest/luatest/server.lua:441: ...nko/Source/sptnt/test-run/lib/luatest/luatest/server.lua:417: Timed out to wait for "process is terminated" condition for server (alias: server2, workdir: server2-twonxuVZhmaX, pid: 32247) within 60s
[032] # stack traceback:
[032] # ...tnt/test/replication-luatest/bootstrap_strategy_test.lua:289: in function <...tnt/test/replication-luatest/bootstrap_strategy_test.lua:287>
[032] # ...
[032] # [C]: in function 'xpcall'
[032] # artifacts:
[032] # server1 -> /private/tmp/t/032_replication-luatest/artifacts/rs-fVCA2kOlQx-T/server1-Z586uOxV8ZAx
[032] # server2 -> /private/tmp/t/032_replication-luatest/artifacts/rs-fVCA2kOlQx-T/server2-twonxuVZhmaX
[032]
[032] [test-run server "luatest_server"] The log file /private/tmp/t/032_replication-luatest/bootstrap_strategy_test.log has zero size
[Main process] Got failed test; gently terminate all workers...
[032] Worker "032_replication-luatest" got failed test; stopping the server...
Bisect shows that the test became flaky after commit tarantool/tarantool@bf62065.
While investigating I found out that applying the following diff fixes the test hang, so it is probably some issue with curl requests made by the feedback daemon on shutdown:
diff --git a/test/replication-luatest/bootstrap_strategy_test.lua b/test/replication-luatest/bootstrap_strategy_test.lua
index 496a30e39b..5eee3ffed3 100644
--- a/test/replication-luatest/bootstrap_strategy_test.lua
+++ b/test/replication-luatest/bootstrap_strategy_test.lua
@@ -271,6 +271,7 @@ g_config.before_test('test_replication_without_bootstrap_leader', function(cg)
cg.server2 = cg.replica_set:build_and_add_server{
alias = 'server2',
box_cfg = {
+ feedback_enabled = false,
replication_timeout = 0.1,
},
}