Skip to content

Commit 85e4a11

Browse files
author
Pedro Figueiredo
committed
BUG#27928837 `HEAD->VARIABLES.GTID_NEXT.TYPE != UNDEFINED_GTID'
[post-push] Problem ------- The test script binlog_gtid.binlog_gtid_unknown_xid is failling sporadically on PB2 due to a difference in expect error codes: mysqltest: At line 110: Query 'XA ROLLBACK 'xa1'' failed with wrong error 1397: 'XAER_NOTA: Unknown XID', should have failed with error '1399'. Analysis -------- This problem happens when the test is ran several times in a row, leading to the conclusion that something has not been cleaned up properly. After analysis, the conclusion is that an XA transaction that is started in the test script is never commited or rolled back. Fix --- 1) Rollback the XA transaction at the end of the test script 2) Verify that are no pending XA transactions
1 parent e11403d commit 85e4a11

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mysql-test/suite/binlog/t/binlog_gtid_unknown_xid.test

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ SET @@AUTOCOMMIT=1;
9696
XA START 'xa1';
9797
XA END 'xa1';
9898
XA PREPARE 'xa1';
99+
--let $connection_id= `SELECT CONNECTION_ID()`
99100
--disconnect other_conn
100101
# Wait for the `other_conn` to be cleared from the server
101102
--connection default

0 commit comments

Comments
 (0)