-
Notifications
You must be signed in to change notification settings - Fork 403
Closed as not planned
Closed as not planned
Copy link
Labels
bugSomething isn't workingSomething isn't workingmemtxmvccwontfixThis will not be worked onThis will not be worked on
Description
Steps to reproduce
os.execute('rm -rf *.snap *.xlog *.vylog 512')
local ffi = require('ffi')
local json = require('json')
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('sk', {type = 'RTREE', unique = false, parts = {{2, 'array'}}})
local tx1 = txn_proxy:new()
local tx2 = txn_proxy:new()
tx1:begin()
tx2:begin()
tx1('box.space.s.index[1]:select({0, 0, 1, 1}, {iterator = "LE"})')
tx2('box.space.s:insert{0, 0, {0, 0}}')
tx1('box.space.s:insert{1, 0, {1, 0}}')
tx2:commit()
log.info("%s", json.encode(tx1:commit()))
os.exit()os.execute('rm -rf *.snap *.xlog *.vylog 512')
local ffi = require('ffi')
local json = require('json')
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('sk', {type = 'RTREE', unique = false, parts = {{2, 'array'}}})
local tx1 = txn_proxy:new()
local tx2 = txn_proxy:new()
tx1:begin()
tx2:begin()
tx1('box.space.s.index[1]:select{0, 0}')
tx2('box.space.s:insert{0, 0, {0, 0}}')
tx1('box.space.s:insert{1, 0, {1, 0}}')
tx2:commit()
log.info("%s", json.encode(tx1:commit()))
os.exit()os.execute('rm -rf *.snap *.xlog *.vylog 512')
local ffi = require('ffi')
local json = require('json')
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('sk', {type = 'RTREE', unique = false, parts = {{2, 'array'}}})
local tx1 = txn_proxy:new()
local tx2 = txn_proxy:new()
tx1:begin()
tx2:begin()
tx1('box.space.s.index[1]:select{}')
tx2('box.space.s:insert{0, 0, {0, 0}}')
tx1('box.space.s:insert{1, 0, {1, 0}}')
tx2:commit()
log.info("%s", json.encode(tx1:commit()))
os.exit()os.execute('rm -rf *.snap *.xlog *.vylog 512')
local ffi = require('ffi')
local json = require('json')
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('sk', {type = 'BITSET', unique = false, parts = {{2, 'uint'}}})
local tx1 = txn_proxy:new()
local tx2 = txn_proxy:new()
tx1:begin()
tx2:begin()
tx1('box.space.s.index[1]:select{0}')
tx2('box.space.s:insert{0, 0, {0, 0}}')
tx1('box.space.s:insert{1, 0, {1, 0}}')
tx2:commit()
log.info("%s", json.encode(tx1:commit()))
os.exit()os.execute('rm -rf *.snap *.xlog *.vylog 512')
local ffi = require('ffi')
local json = require('json')
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('sk', {type = 'BITSET', unique = false, parts = {{2, 'uint'}}})
local tx1 = txn_proxy:new()
local tx2 = txn_proxy:new()
tx1:begin()
tx2:begin()
tx1('box.space.s.index[1]:select{0}')
tx2('box.space.s:insert{0, 0, {0, 0}}')
tx1('box.space.s:insert{1, 0, {1, 0}}')
tx2:commit()
log.info("%s", json.encode(tx1:commit()))
os.exit()os.execute('rm -rf *.snap *.xlog *.vylog 512')
local ffi = require('ffi')
local json = require('json')
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('sk', {type = 'BITSET', unique = false, parts = {{2, 'uint'}}})
local tx1 = txn_proxy:new()
local tx2 = txn_proxy:new()
tx1:begin()
tx2:begin()
tx1('box.space.s.index[1]:select({1}, {iterator = "BIT_ANY_SET"})')
tx2('box.space.s:insert{0, 0, {0, 0}}')
tx1('box.space.s:insert{1, 0, {1, 0}}')
tx2:commit()
log.info("%s", json.encode(tx1:commit()))
os.exit()os.execute('rm -rf *.snap *.xlog *.vylog 512')
local ffi = require('ffi')
local json = require('json')
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('sk', {type = 'BITSET', unique = false, parts = {{2, 'uint'}}})
local tx1 = txn_proxy:new()
local tx2 = txn_proxy:new()
tx1:begin()
tx2:begin()
tx1('box.space.s.index[1]:select{}')
tx2('box.space.s:insert{0, 0, {0, 0}}')
tx1('box.space.s:insert{1, 0, {1, 0}}')
tx2:commit()
log.info("%s", json.encode(tx1:commit()))
os.exit()Actual behavior
""Expected behavior
[{"error":"Transaction has been aborted by conflict"}]Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingmemtxmvccwontfixThis will not be worked onThis will not be worked on