box: check fiber slice in generic implementation of index count
`index.count()` may hang for too long in Vinyl if a substantial consecutive hunk of the space is stored in memory. Let's add a fiber slice check to it to prevent it from blocking the TX thread for too long. Closes #10553 NO_DOC=bug fix (cherry picked from commit e19bca5a74e83d2521fe770f2a93c3e3d3ad4801)
Showing
- changelogs/unreleased/gh-10553-check-fiber-slice-in-vinyl-index-count.md 4 additions, 0 deletions...leased/gh-10553-check-fiber-slice-in-vinyl-index-count.md
- src/box/index.cc 5 additions, 1 deletionsrc/box/index.cc
- test/vinyl-luatest/gh_10553_index_count_fiber_slice_test.lua 46 additions, 0 deletionstest/vinyl-luatest/gh_10553_index_count_fiber_slice_test.lua
Loading
Please register or sign in to comment