From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Serge Petrenko Subject: [PATCH 0/2] memtx: make space format check yield occasionally Date: Mon, 3 Jun 2019 18:51:04 +0300 Message-Id: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit To: vdavydov.dev@gmail.com Cc: tarantool-patches@freelists.org, Serge Petrenko List-ID: 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)