From a800ccc68bab2a31c927e7393e07ade881602acb Mon Sep 17 00:00:00 2001 From: Vladimir Davydov <vdavydov@tarantool.org> Date: Wed, 2 Oct 2024 10:58:10 +0300 Subject: [PATCH] test: disable fiber slice check in replica_apply_order test Since commit e19bca5a74e8 ("box: check fiber slice in generic implementation of index count"), Vinyl's version of `index.count()` checks the fiber slice. As a result, the test may fail if it runs under a heavy load: ``` | @@ -94,6 +94,7 @@ | end | end; | | --- | + | - error: fiber slice is exceeded | | ... | -- Verify that at any moment max index is corresponding to amount of tuples, | -- which means that changes apply order is correct ``` Let's set the max fiber slice to a big value to avoid that. NO_DOC=test fix NO_CHANGELOG=test fix (cherry picked from commit b5fb66437a22ea65ed27c2ed14636e8036b079d3) --- test/replication/replica_apply_order.result | 4 ++++ test/replication/replica_apply_order.test.lua | 2 ++ 2 files changed, 6 insertions(+) diff --git a/test/replication/replica_apply_order.result b/test/replication/replica_apply_order.result index 513b722a79..764f00d84a 100644 --- a/test/replication/replica_apply_order.result +++ b/test/replication/replica_apply_order.result @@ -75,6 +75,10 @@ test_run:cmd("switch replica1") | --- | - true | ... +-- index.count() checks fiber slice (gh-10553) +require('fiber').set_max_slice(9000) + | --- + | ... test_run:cmd("setopt delimiter ';'") | --- | - true diff --git a/test/replication/replica_apply_order.test.lua b/test/replication/replica_apply_order.test.lua index ba54ef8439..2ce478bdfe 100644 --- a/test/replication/replica_apply_order.test.lua +++ b/test/replication/replica_apply_order.test.lua @@ -26,6 +26,8 @@ ch:get() errinj.set("ERRINJ_RELAY_FINAL_SLEEP", false) test_run:cmd("switch replica1") +-- index.count() checks fiber slice (gh-10553) +require('fiber').set_max_slice(9000) test_run:cmd("setopt delimiter ';'") function get_max_index_and_count() return box.space.test.index.primary:max()[1], box.space.test.index.primary:count() -- GitLab