Tarantool development patches archive
 help / color / mirror / Atom feed
* [Tarantool-patches] [PATCH v1] test: fix hang of vinyl/gh-4810-dump-during* test
@ 2020-11-09 13:35 Alexander V. Tikhonov
  0 siblings, 0 replies; only message in thread
From: Alexander V. Tikhonov @ 2020-11-09 13:35 UTC (permalink / raw)
  To: Kirill Yukhin; +Cc: tarantool-patches

During testing process:

  https://gitlab.com/tarantool/tarantool/-/jobs/800798411#L5693

found that test vinyl/gh-4810-dump-during-index-build.test.lua hanged:

  --- vinyl/gh-4810-dump-during-index-build.result		Tue Oct 20 08:41:33 2020
  +++ var/031_vinyl/gh-4810-dump-during-index-build.result	Fri May 8 08:23:45 2020
  @@ -117,34 +117,3 @@
   for i = 1, ch:size() do
       ch:get()
   end;
  - | ---
  - | ...
  -

This issue stops the testing till the complete timeout of the test-run
will stop all the testing process. To avoid of it 'wait_cond()' routine
was added to 'ch:get()' command to set it's local timeout to avoid of
waiting for test-run global timeout.

Needed for #5508
---

Github: https://github.com/tarantool/tarantool/tree/avtikhon/gh-5508-hang-gh-4810
Issue: https://github.com/tarantool/tarantool/issues/5508

 test/vinyl/gh-4810-dump-during-index-build.result   | 2 +-
 test/vinyl/gh-4810-dump-during-index-build.test.lua | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/vinyl/gh-4810-dump-during-index-build.result b/test/vinyl/gh-4810-dump-during-index-build.result
index f55c44a1f..ceb098c02 100644
--- a/test/vinyl/gh-4810-dump-during-index-build.result
+++ b/test/vinyl/gh-4810-dump-during-index-build.result
@@ -115,7 +115,7 @@ stop = true;
  | ---
  | ...
 for i = 1, ch:size() do
-    ch:get()
+    test_run:wait_cond(function() return ch:get() end)
 end;
  | ---
  | ...
diff --git a/test/vinyl/gh-4810-dump-during-index-build.test.lua b/test/vinyl/gh-4810-dump-during-index-build.test.lua
index 7b7026498..13b3d5a2a 100644
--- a/test/vinyl/gh-4810-dump-during-index-build.test.lua
+++ b/test/vinyl/gh-4810-dump-during-index-build.test.lua
@@ -61,7 +61,7 @@ fiber.sleep(3);
 
 stop = true;
 for i = 1, ch:size() do
-    ch:get()
+    test_run:wait_cond(function() return ch:get() end)
 end;
 
 test_run:cmd("setopt delimiter ''");
-- 
2.25.1

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-11-09 13:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-09 13:35 [Tarantool-patches] [PATCH v1] test: fix hang of vinyl/gh-4810-dump-during* test Alexander V. Tikhonov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox