1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
--source include/have_binlog_format_row.inc
--source include/have_rocksdb.inc
--source include/have_debug.inc
--disable_warnings
DROP TABLE IF EXISTS t1;
--enable_warnings
create table t1 (a int primary key, msg varchar(255)) engine=rocksdb;
SET GLOBAL ROCKSDB_ENABLE_2PC = ON;
--exec echo "restart" > $MYSQLTEST_VARDIR/tmp/mysqld.1.expect
SET SESSION debug_dbug="d,crash_commit_after_prepare";
--error 0,2013
insert into t1 values (1, 'dogz');
--enable_reconnect
--source include/wait_until_connected_again.inc
select * from t1;
SET GLOBAL ROCKSDB_ENABLE_2PC = ON;
--exec echo "restart" > $MYSQLTEST_VARDIR/tmp/mysqld.1.expect
SET SESSION debug_dbug="d,crash_commit_after_log";
--error 0,2013
insert into t1 values (2, 'catz'), (3, 'men');
--enable_reconnect
--source include/wait_until_connected_again.inc
select * from t1;
SET GLOBAL ROCKSDB_ENABLE_2PC = ON;
--exec echo "restart" > $MYSQLTEST_VARDIR/tmp/mysqld.1.expect
SET SESSION debug_dbug="d,crash_commit_after";
--error 0,2013
insert into t1 values (4, 'cars'), (5, 'foo');
--enable_reconnect
--source include/wait_until_connected_again.inc
select * from t1;
SET GLOBAL ROCKSDB_ENABLE_2PC = OFF;
--exec echo "restart" > $MYSQLTEST_VARDIR/tmp/mysqld.1.expect
SET SESSION debug_dbug="d,crash_commit_after_log";
--error 0,2013
insert into t1 values (6, 'shipz'), (7, 'tankz');
--enable_reconnect
--source include/wait_until_connected_again.inc
select * from t1;
SET GLOBAL ROCKSDB_ENABLE_2PC = OFF;
--exec echo "restart" > $MYSQLTEST_VARDIR/tmp/mysqld.1.expect
SET SESSION debug_dbug="d,crash_commit_after";
--error 0,2013
insert into t1 values (8, 'space'), (9, 'time');
--enable_reconnect
--source include/wait_until_connected_again.inc
select * from t1;
drop table t1;
|