Commit f561e63f authored by Sergei Petrunia's avatar Sergei Petrunia

MyRocks: Post-merge testcase fixes part #2

parent a01823a3
...@@ -47,15 +47,23 @@ DELETE FROM t1; ...@@ -47,15 +47,23 @@ DELETE FROM t1;
DELETE FROM t4; DELETE FROM t4;
SET GLOBAL rocksdb_max_manual_compactions = 2; SET GLOBAL rocksdb_max_manual_compactions = 2;
SET GLOBAL rocksdb_debug_manual_compaction_delay = 3600; SET GLOBAL rocksdb_debug_manual_compaction_delay = 3600;
connect con1, localhost, root,,;
connect con2, localhost, root,,;
connect con3, localhost, root,,;
connection con1;
SET GLOBAL rocksdb_compact_cf='cf1'; SET GLOBAL rocksdb_compact_cf='cf1';
connection con2;
SET GLOBAL rocksdb_compact_cf='rev:cf2'; SET GLOBAL rocksdb_compact_cf='rev:cf2';
connection default;
select * from information_schema.global_status where variable_name='rocksdb_manual_compactions_running'; select * from information_schema.global_status where variable_name='rocksdb_manual_compactions_running';
VARIABLE_NAME VARIABLE_VALUE VARIABLE_NAME VARIABLE_VALUE
ROCKSDB_MANUAL_COMPACTIONS_RUNNING 1 ROCKSDB_MANUAL_COMPACTIONS_RUNNING 1
connection con3;
SET GLOBAL rocksdb_compact_cf='cf1'; SET GLOBAL rocksdb_compact_cf='cf1';
ERROR HY000: Internal error: Can't schedule more manual compactions. Increase rocksdb_max_manual_compactions or stop issuing more manual compactions. ERROR HY000: Internal error: Can't schedule more manual compactions. Increase rocksdb_max_manual_compactions or stop issuing more manual compactions.
SET GLOBAL rocksdb_compact_cf='rev:cf2'; SET GLOBAL rocksdb_compact_cf='rev:cf2';
ERROR HY000: Internal error: Can't schedule more manual compactions. Increase rocksdb_max_manual_compactions or stop issuing more manual compactions. ERROR HY000: Internal error: Can't schedule more manual compactions. Increase rocksdb_max_manual_compactions or stop issuing more manual compactions.
connection default;
drop table t4; drop table t4;
CREATE TABLE t5 ( CREATE TABLE t5 (
a int not null, a int not null,
......
...@@ -61,22 +61,29 @@ connection con1; ...@@ -61,22 +61,29 @@ connection con1;
i i
rollback; rollback;
connection default; connection default;
disconnect con1;
disconnect con2;
disconnect con3;
create table t1 (id int primary key, value int, value2 int, index(value)) engine=rocksdb; create table t1 (id int primary key, value int, value2 int, index(value)) engine=rocksdb;
insert into t1 values (1,1,1),(2,2,2),(3,3,3),(4,4,4),(5,5,5),(6,6,6),(7,7,7),(8,8,8),(9,9,9),(10,10,10); insert into t1 values (1,1,1),(2,2,2),(3,3,3),(4,4,4),(5,5,5),(6,6,6),(7,7,7),(8,8,8),(9,9,9),(10,10,10);
connection con1;
begin; begin;
update t1 force index (value) set value2=value2+1 where value=3; update t1 force index (value) set value2=value2+1 where value=3;
connection con2;
begin; begin;
update t1 force index (value) set value2=value2+1 where value=2; update t1 force index (value) set value2=value2+1 where value=2;
update t1 force index (value) set value2=value2+1 where value=4; update t1 force index (value) set value2=value2+1 where value=4;
connection con1;
update t1 force index (value) set value2=value2+1 where value=4; update t1 force index (value) set value2=value2+1 where value=4;
connection con2;
update t1 force index (value) set value2=value2+1 where value=3; update t1 force index (value) set value2=value2+1 where value=3;
ERROR 40001: Deadlock found when trying to get lock; try restarting transaction ERROR 40001: Deadlock found when trying to get lock; try restarting transaction
connection con1;
rollback; rollback;
connection con2;
rollback; rollback;
drop table t1; drop table t1;
connection default;
disconnect con1;
disconnect con2;
disconnect con3;
set global rocksdb_lock_wait_timeout = @prior_rocksdb_lock_wait_timeout; set global rocksdb_lock_wait_timeout = @prior_rocksdb_lock_wait_timeout;
set global rocksdb_deadlock_detect = @prior_rocksdb_deadlock_detect; set global rocksdb_deadlock_detect = @prior_rocksdb_deadlock_detect;
drop table t,r1,r2; drop table t,r1,r2;
...@@ -22,7 +22,7 @@ native_procedure : Not supported in MariaDB ...@@ -22,7 +22,7 @@ native_procedure : Not supported in MariaDB
slow_query_log: MDEV-11480 slow_query_log: MDEV-11480
select_for_update_skip_locked_nowait: MDEV-11481 select_for_update_skip_locked_nowait: MDEV-11481
create_no_primary_key_table: MariaDB doesn't have --block_create_no_primary_key create_no_primary_key_table: MariaDB doesn't have --block_create_no_primary_key
explicit_snapshot: MariaDB doesn't support Shared/Explicit snapshots
## ##
## Tests that do not fit MariaDB's test environment. Upstream seems to test ## Tests that do not fit MariaDB's test environment. Upstream seems to test
......
--source include/have_rocksdb.inc --source include/have_rocksdb.inc
--source include/have_partition.inc --source include/have_partition.inc
--source suite/rocksdb/include/have_write_committed.inc --source include/have_write_committed.inc
# #
# RocksDB Storage Engine tests # RocksDB Storage Engine tests
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment