Skip to content
Permalink
Browse files
MyRocks: Post-merge testcase fixes part #3
  • Loading branch information
spetrunia committed Aug 28, 2018
1 parent f561e63 commit 138605c
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 6 deletions.
@@ -27,7 +27,7 @@ set global rocksdb_force_flush_memtable_now=1;
explain
select * from t1 limit 10;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 ALL NULL NULL NULL NULL 10000 NULL
1 SIMPLE t1 ALL NULL NULL NULL NULL 10000
select * from t1 limit 10;
id1 id2 id3 id4 id5 value value2
1000 2000 2000 10000 10000 1000 aaabbbccc
@@ -44,7 +44,7 @@ id1 id2 id3 id4 id5 value value2
explain
select * from t1 order by id1 desc,id2 desc, id3 desc, id4 desc limit 1;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 index NULL PRIMARY 122 NULL 1 NULL
1 SIMPLE t1 index NULL PRIMARY 122 NULL 1
select * from t1 order by id1 desc,id2 desc, id3 desc, id4 desc limit 1;
id1 id2 id3 id4 id5 value value2
1000 2000 2000 10000 10000 1000 aaabbbccc
@@ -14,7 +14,7 @@ show create table information_schema.rocksdb_deadlock;
Table Create Table
ROCKSDB_DEADLOCK CREATE TEMPORARY TABLE `ROCKSDB_DEADLOCK` (
`DEADLOCK_ID` bigint(8) NOT NULL DEFAULT 0,
`TIMESTAMP` bigint(8) NOT NULL DEFAULT '0',
`TIMESTAMP` bigint(8) NOT NULL DEFAULT 0,
`TRANSACTION_ID` bigint(8) NOT NULL DEFAULT 0,
`CF_NAME` varchar(193) NOT NULL DEFAULT '',
`WAITING_KEY` varchar(513) NOT NULL DEFAULT '',
@@ -1,11 +1,18 @@
connect con, localhost, root,,;
connection default;
create table t1 (a int primary key, b int unique key) engine = rocksdb;
insert into t1 values(1, 1);
connection con;
begin;
update t1 set b = 2 where b = 1;
connection default;
insert into t1 values(2, 1);
ERROR HY000: Lock wait timeout exceeded; try restarting transaction: Timeout on index: test.t1.b
ERROR HY000: Lock wait timeout exceeded; try restarting transaction
connection con;
rollback;
select * from t1;
a b
1 1
connection default;
drop table t1;
disconnect con;
@@ -3,7 +3,7 @@ CREATE TABLE t1 (pk INT PRIMARY KEY DEFAULT '0', a INT(11), b CHAR(8)) ENGINE=ro
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`pk` int(11) NOT NULL DEFAULT '0',
`pk` int(11) NOT NULL DEFAULT 0,
`a` int(11) DEFAULT NULL,
`b` char(8) DEFAULT NULL,
PRIMARY KEY (`pk`)
@@ -1,5 +1,5 @@
--source include/have_rocksdb.inc
--source suite/rocksdb/include/have_write_committed.inc
--source include/have_write_committed.inc

--disable_warnings
DROP TABLE IF EXISTS t1;

0 comments on commit 138605c

Please sign in to comment.