Skip to content

Secondary index uniqueness violation #7761

@CuriousGeorgiy

Description

@CuriousGeorgiy

Steps to reproduce

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

local log = require('log')
local txn_proxy = require('txn_proxy')

box.cfg{memtx_use_mvcc_engine = true}

local s = box.schema.space.create('s')
s:create_index('pk')
s:create_index('sk2', {parts = {{2}}})

local tx1 = txn_proxy:new()
local tx2 = txn_proxy:new()

tx1:begin()
tx2:begin()

tx2('box.space.s:insert{0, 1}')
tx1('box.space.s:insert{1, 0}')
tx1('box.space.s:replace{1, 1}')

tx2:commit()
tx1:commit()

log.info(box.space.s:select({}, {fullscan = true}))

os.exit()

Actual behavior

 ---
[[0,1],[1,1]]
...

Expected behavior

 ---
[[0,1]]
...

Metadata

Metadata

Labels

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

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions