-
Notifications
You must be signed in to change notification settings - Fork 403
Closed
Labels
Description
Consider the script:
-- Cleanup
os.execute('rm 00*')
box.cfg{memtx_use_mvcc_engine=true}
box.schema.func.create('test', {
is_deterministic = true,
body = [[function(tuple)
return {tuple[1]}
end]]
})
local s = box.schema.space.create('test', {format = {{'key', 'unsigned'},}})
s:create_index('primary')
s:create_index('value', {
func = 'test',
parts = {{1, 'unsigned'}},
})
-- A bunch of simple replaces and deletions
for i = 1, 10 do
s:replace{i}
s:delete{i}
endA bunch of simple operations results into a crash:
Assertion failed: (story->tuple == removed || (removed == NULL && tuple_key_is_excluded(story->tuple, key_def, MULTIKEY_NONE))), function memtx_tx_story_full_unlink_story_gc_step, file memtx_tx.c, line 1351.
[1] 64651 abort ./src/tarantool ../func_index_mvcc.luaOld repro with `fiber_on_stop`
-- Cleanup
os.execute('rm 00*')
box.cfg{memtx_use_mvcc_engine=true}
box.schema.func.create('test', {
is_deterministic = true,
body = [[function(tuple)
return {tuple[1]}
end]]
})
local s = box.schema.space.create('test', {format = {{'key', 'unsigned'},}})
s:create_index('primary')
s:create_index('value', {
func = 'test',
parts = {{1, 'unsigned'}},
})
box.begin()
for i = 1, 10 do
s:replace{i}
endIt fails with assertion:
Assertion failed: (story->tuple == removed || (removed == NULL && tuple_key_is_excluded(story->tuple, key_def, MULTIKEY_NONE))), function memtx_tx_story_full_unlink_story_gc_step, file memtx_tx.c, line 1350.Reactions are currently unavailable