Skip to content

Assertion failure in memtx transaction manager #8104

@CuriousGeorgiy

Description

@CuriousGeorgiy

Steps to reproduce

os.execute('rm -rf *.snap *.xlog *.vylog 512')

local fiber = require('fiber')
local ffi = require('ffi')

box.cfg{memtx_use_mvcc_engine = true}

local s = box.schema.space.create('s')
s:create_index('pk')

s:replace{0}

local first_replace = fiber.new(function()
    box.atomic(function()
        s:delete{0}
    end)
end)
local second_replace = fiber.new(function()
    box.atomic(function()
        s:replace{0}
    end)
end)

first_replace:set_joinable(true)
second_replace:set_joinable(true)

first_replace:join()
second_replace:join()

os.exit()

Actual behavior

Assertion failed: (test_stmt->txn->psn == 0), function memtx_tx_history_prepare_insert_stmt, file memtx_tx.c, line 2485.

Expected behavior

Script is successfully executed.

Metadata

Metadata

Labels

2.10Target is 2.10 and all newer release/master branchesbugSomething isn't workingcrashmemtxmvcc

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions