[Tarantool-patches] [PATCH v1] test: flaky engine/json.test.lua test
Alexander V. Tikhonov
avtikhon at tarantool.org
Tue Nov 10 16:46:26 MSK 2020
Found issue:
No output during 120 seconds. Will abort after 120 seconds without output. List of workers not reporting the status:
- 001_engine [engine/json.test.lua, memtx] at var/001_engine/json.result:598
Test hung! Result content mismatch:
--- engine/json.result Fri Nov 6 08:35:45 2020
+++ var/001_engine/json.result Mon Nov 9 03:48:40 2020
@@ -596,248 +596,3 @@
- ok
...
test_run:cmd("restart server default")
-engine = test_run:get_cfg('engine')
----
-…
It happened because test-run used to restart 'tarantoolctl restart'
routine with default signal SIGTERM. After tarantoolctl updated with
the ability to provide needed signal to kill the instance, then SIGKILL
was set in the test.
Part of #5510
---
Github: https://github.com/tarantool/tarantool/tree/avtikhon/gh-5510-hang-test-json
Issue: https://github.com/tarantool/tarantool/issues/5510
test/engine/json.result | 2 +-
test/engine/json.test.lua | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/test/engine/json.result b/test/engine/json.result
index b8fd9a1b6..0780c39b7 100644
--- a/test/engine/json.result
+++ b/test/engine/json.result
@@ -595,7 +595,7 @@ box.snapshot()
---
- ok
...
-test_run:cmd("restart server default")
+test_run:cmd("restart server default with signal=KILL")
engine = test_run:get_cfg('engine')
---
...
diff --git a/test/engine/json.test.lua b/test/engine/json.test.lua
index 371bbad91..427f14c36 100644
--- a/test/engine/json.test.lua
+++ b/test/engine/json.test.lua
@@ -170,7 +170,7 @@ name:select({})
name:select({'Max'})
name:get({'Max', 'Stierlitz', 'Otto'})
box.snapshot()
-test_run:cmd("restart server default")
+test_run:cmd("restart server default with signal=KILL")
engine = test_run:get_cfg('engine')
s = box.space["withdata"]
pk = s.index["pk"]
--
2.25.1
More information about the Tarantool-patches
mailing list