Skip to content
Snippets Groups Projects
Commit a800ccc6 authored by Vladimir Davydov's avatar Vladimir Davydov
Browse files

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)
parent ca1e0dee
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment