Debian Codegraph @

mysql-test/suite/binlog/r/binlog_xa_prepare_failure.result

raw
1 CALL mtr.add_suppression("Statement is unsafe because it is being used inside a XA transaction");
2 SET @save_session_debug= @@SESSION.debug;
3 CREATE TABLE t1 (a INT PRIMARY KEY);
4 XA START 'xa1';
5 INSERT INTO t1 VALUES (1);
6 XA END 'xa1';
7 SET @@SESSION.debug = "+d,simulate_xa_prepare_failure_in_cache_finalize";
8 XA PREPARE 'xa1';
9 Got one of the listed errors
10 XA ROLLBACK 'xa1';
11 ERROR XAE04: XAER_NOTA: Unknown XID
12 XA COMMIT 'xa1';
13 ERROR XAE04: XAER_NOTA: Unknown XID
14 XA START 'xa1';
15 INSERT INTO t1 VALUES (1);
16 XA END 'xa1';
17 SET @@SESSION.debug = "+d,simulate_failure_in_before_commit_hook";
18 XA PREPARE 'xa1';
19 Got one of the listed errors
20 XA ROLLBACK 'xa1';
21 ERROR XAE04: XAER_NOTA: Unknown XID
22 XA COMMIT 'xa1';
23 ERROR XAE04: XAER_NOTA: Unknown XID
24 XA START 'xa1';
25 INSERT INTO t1 VALUES (1);
26 XA END 'xa1';
27 SET @@SESSION.debug = "+d,simulate_transaction_rollback_request";
28 XA PREPARE 'xa1';
29 Got one of the listed errors
30 XA ROLLBACK 'xa1';
31 ERROR XAE04: XAER_NOTA: Unknown XID
32 XA COMMIT 'xa1';
33 ERROR XAE04: XAER_NOTA: Unknown XID
34 SET @@SESSION.debug= @save_session_debug;
35 DROP TABLE t1;