2012-04-11 04:16:55 +00:00
|
|
|
drop table if exists t1;
|
|
|
|
CREATE TABLE t1 (a INT PRIMARY KEY) ENGINE=tokudb;
|
|
|
|
xa begin 'a','ab';
|
|
|
|
insert into t1 values (1);
|
|
|
|
select * from t1;
|
|
|
|
a
|
|
|
|
1
|
|
|
|
xa end 'a','ab';
|
|
|
|
SET SESSION debug="d,tokudb_crash_prepare_before";
|
|
|
|
xa prepare 'a','ab';
|
|
|
|
ERROR HY000: Lost connection to MySQL server during query
|
|
|
|
xa commit'a','ab';
|
|
|
|
ERROR XAE04: XAER_NOTA: Unknown XID
|
|
|
|
drop table t1;
|
2012-04-11 04:21:32 +00:00
|
|
|
CALL mtr.add_suppression("Found 1 prepared XA transactions");
|
2012-04-11 04:16:55 +00:00
|
|
|
CREATE TABLE t1 (a INT PRIMARY KEY) ENGINE=tokudb;
|
|
|
|
xa begin 'a','ab';
|
|
|
|
insert into t1 values (1);
|
|
|
|
select * from t1;
|
|
|
|
a
|
|
|
|
1
|
|
|
|
xa end 'a','ab';
|
|
|
|
SET SESSION debug="d,tokudb_crash_prepare_after";
|
|
|
|
xa prepare 'a','ab';
|
|
|
|
ERROR HY000: Lost connection to MySQL server during query
|
|
|
|
xa commit 'a','ab';
|
|
|
|
select * from t1;
|
|
|
|
a
|
|
|
|
1
|
|
|
|
drop table t1;
|
|
|
|
CREATE TABLE t1 (a INT PRIMARY KEY) ENGINE=tokudb;
|
|
|
|
xa begin 'a','ab';
|
|
|
|
insert into t1 values (1);
|
|
|
|
select * from t1;
|
|
|
|
a
|
|
|
|
1
|
|
|
|
xa end 'a','ab';
|
|
|
|
SET SESSION debug="d,tokudb_crash_prepare_after";
|
|
|
|
xa prepare 'a','ab';
|
|
|
|
ERROR HY000: Lost connection to MySQL server during query
|
|
|
|
xa rollback 'a','ab';
|
|
|
|
select * from t1;
|
|
|
|
a
|
|
|
|
drop table t1;
|
|
|
|
CREATE TABLE t1 (a INT PRIMARY KEY) ENGINE=tokudb;
|
|
|
|
xa begin 'a','ab';
|
|
|
|
insert into t1 values (1);
|
|
|
|
select * from t1;
|
|
|
|
a
|
|
|
|
1
|
|
|
|
xa end 'a','ab';
|
|
|
|
SET SESSION debug="d,tokudb_crash_commit_before";
|
|
|
|
xa prepare 'a','ab';
|
|
|
|
xa commit 'a','ab';
|
|
|
|
ERROR HY000: Lost connection to MySQL server during query
|
|
|
|
xa commit 'a','ab';
|
|
|
|
select * from t1;
|
|
|
|
a
|
|
|
|
1
|
|
|
|
drop table t1;
|
|
|
|
CREATE TABLE t1 (a INT PRIMARY KEY) ENGINE=tokudb;
|
|
|
|
xa begin 'a','ab';
|
|
|
|
insert into t1 values (1);
|
|
|
|
select * from t1;
|
|
|
|
a
|
|
|
|
1
|
|
|
|
xa end 'a','ab';
|
|
|
|
SET SESSION debug="d,tokudb_crash_commit_before";
|
|
|
|
xa prepare 'a','ab';
|
|
|
|
xa commit 'a','ab';
|
|
|
|
ERROR HY000: Lost connection to MySQL server during query
|
|
|
|
xa rollback 'a','ab';
|
|
|
|
select * from t1;
|
|
|
|
a
|
|
|
|
drop table t1;
|