[PATCH 1/2] test: fix vinyl/errinj_stat again
Vladimir Davydov
vdavydov.dev at gmail.com
Thu Apr 11 13:13:37 MSK 2019
Another failure this time:
| [024] —- vinyl/errinj_stat.result Wed Apr 10 14:21:34 2019
| [024] +++ vinyl/errinj_stat.reject Wed Apr 10 14:24:15 2019
| [024] @@ -220,7 +220,7 @@
| [024] ...
| [024] box.snapshot()
| [024] —-
| [024] — error: Error injection 'vinyl dump'
| [024] +- error: Snapshot is already in progress
| [024] ...
| [024] stat = box.stat.vinyl().scheduler
| [024] —-
| [024] @@ -231,7 +231,7 @@
| [024] ...
| [024] stat.tasks_failed > 0
| [024] —-
| [024] — true
| [024] +- false
| [024] ...
| [024] errinj.set('ERRINJ_VY_RUN_WRITE', false)
| [024] —-
Hope it's the last time we fix it.
Follow-up commit f4b80bcf4908 ("test: fix vinyl/errinj_stat failure").
---
test/vinyl/errinj_stat.result | 8 ++++++++
test/vinyl/errinj_stat.test.lua | 2 ++
2 files changed, 10 insertions(+)
diff --git a/test/vinyl/errinj_stat.result b/test/vinyl/errinj_stat.result
index a4e63357..f1133137 100644
--- a/test/vinyl/errinj_stat.result
+++ b/test/vinyl/errinj_stat.result
@@ -191,6 +191,10 @@ test_run:wait_cond(function() return box.stat.vinyl().scheduler.tasks_completed
---
- true
...
+test_run:wait_cond(function() return not box.info.gc().checkpoint_is_in_progress end)
+---
+- true
+...
stat = box.stat.vinyl().scheduler
---
...
@@ -325,6 +329,10 @@ test_run:wait_cond(function() return box.stat.vinyl().scheduler.tasks_completed
---
- true
...
+test_run:wait_cond(function() return not box.info.gc().checkpoint_is_in_progress end)
+---
+- true
+...
i:stat().disk.dump.time >= 0.1
---
- true
diff --git a/test/vinyl/errinj_stat.test.lua b/test/vinyl/errinj_stat.test.lua
index c3000bba..d11da450 100644
--- a/test/vinyl/errinj_stat.test.lua
+++ b/test/vinyl/errinj_stat.test.lua
@@ -60,6 +60,7 @@ box.stat.reset() -- doesn't affect tasks_inprogress
box.stat.vinyl().scheduler.tasks_inprogress > 0
errinj.set('ERRINJ_VY_RUN_WRITE_DELAY', false)
test_run:wait_cond(function() return box.stat.vinyl().scheduler.tasks_completed > 0 end)
+test_run:wait_cond(function() return not box.info.gc().checkpoint_is_in_progress end)
stat = box.stat.vinyl().scheduler
stat.tasks_inprogress == 0
stat.tasks_completed == 1
@@ -101,6 +102,7 @@ test_run:wait_cond(function() return box.stat.vinyl().scheduler.tasks_inprogress
fiber.sleep(0.1)
errinj.set('ERRINJ_VY_RUN_WRITE_DELAY', false)
test_run:wait_cond(function() return box.stat.vinyl().scheduler.tasks_completed > 0 end)
+test_run:wait_cond(function() return not box.info.gc().checkpoint_is_in_progress end)
i:stat().disk.dump.time >= 0.1
i:stat().disk.dump.time <= fiber.time() - start_time
i:stat().disk.compaction.time == 0
--
2.11.0
More information about the Tarantool-patches
mailing list