[PATCH 0/2] memtx: make space format check yield occasionally
Serge Petrenko
sergepetrenko at tarantool.org
Mon Jun 3 18:51:04 MSK 2019
https://github.com/tarantool/tarantool/issues/3976
https://github.com/tarantool/tarantool/tree/sp/background-space-format
After we've made memtx index build non-blocking, it seems reasonable to do the
same thing for format checks.
The first patch adds yields to memtx_space_check_format, and an on_replace
trigger to enforce new format for concurrently inserted tuples.
The second patch moves an appropriate test case from vinyl suite to engine
suite and adds a handy error injection for the matter.
Serge Petrenko (2):
memtx: add yields during space format check
test: move vinyl space format test case to engine suite
src/box/memtx_space.c | 125 +++++++++++++++++++++++++-------
src/box/vinyl.c | 6 ++
src/lib/core/errinj.h | 1 +
test/box/errinj.result | 36 ++++-----
test/engine/errinj_ddl.result | 68 +++++++++++++++++
test/engine/errinj_ddl.test.lua | 33 +++++++++
test/vinyl/errinj_ddl.result | 75 -------------------
test/vinyl/errinj_ddl.test.lua | 35 ---------
8 files changed, 226 insertions(+), 153 deletions(-)
--
2.20.1 (Apple Git-117)
More information about the Tarantool-patches
mailing list