Type:
Bug
Priority:
Critical
Resolution:
Fixed
Affects Version/s:
10.5 , 10.6 , 10.7(EOL) , 10.8(EOL) , 10.9(EOL)
--source include/master-slave.inc
CREATE TABLE t1 (a INT PRIMARY KEY );
XA BEGIN 'x' ;
--error ER_DUP_ENTRY
INSERT INTO t1 VALUES (1),(1);
XA END 'x' ;
XA PREPARE 'x' ;
XA COMMIT 'x' ;
--sync_slave_with_master
# Cleanup
--connection master
DROP TABLE t1;
--source include/rpl_end.inc
Binlog contains this:
10.5 d44a10f4
master-bin.000001 285 Binlog_checkpoint 1 329 master-bin.000001
master-bin.000001 329 Gtid 1 371 GTID 0-1-1
master-bin.000001 371 Query 1 473 use `test`; CREATE TABLE t1 (a INT PRIMARY KEY)
master-bin.000001 473 Gtid 1 515 BEGIN GTID 0-1-2
master-bin.000001 515 Query 1 611 use `test`; INSERT INTO t1 VALUES (1),(1)
master-bin.000001 611 Query 1 684 COMMIT
master-bin.000001 684 Gtid 1 727 GTID 0-1-3
master-bin.000001 727 Query 1 815 XA COMMIT X'78',X'',1
So, slave SQL thread aborts with
Last_SQL_Errno 1397
Last_SQL_Error Error 'XAER_NOTA: Unknown XID' on query. Default database: 'test'. Query: 'XA COMMIT X'78',X'',1'
Reproducible on 10.5-10.6, with any binlog format and both transactional and non-transactional engines.
Naturally, with row format the INSERT part is different, and with InnoDB it is not written at all, but the orphan XA COMMIT is still added to the binary log and causes the replication failure.
Not reproducible on 10.4, no generated XA COMMIT there.
{"report":{"fcp":825.2999999523163,"ttfb":243.5,"pageVisibility":"visible","entityId":99474,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"8a523351-0b4a-4317-93d4-93eba6ef9234","navigationType":0,"readyForUser":910.1999998092651,"redirectCount":0,"resourceLoadedEnd":528.6999998092651,"resourceLoadedStart":248.5,"resourceTiming":[{"duration":11.599999904632568,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":248.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":248.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":260.09999990463257,"responseStart":0,"secureConnectionStart":0},{"duration":12.200000047683716,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/download/contextbatch/css/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true","startTime":248.79999995231628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":248.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":261,"responseStart":0,"secureConnectionStart":0},{"duration":149.60000014305115,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":248.89999985694885,"connectEnd":248.89999985694885,"connectStart":248.89999985694885,"domainLookupEnd":248.89999985694885,"domainLookupStart":248.89999985694885,"fetchStart":248.89999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":264.39999985694885,"responseEnd":398.5,"responseStart":276,"secureConnectionStart":248.89999985694885},{"duration":279.69999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/099b33461394b8015fc36c0a4b96e19f-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/download/contextbatch/js/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true","startTime":249,"connectEnd":249,"connectStart":249,"domainLookupEnd":249,"domainLookupStart":249,"fetchStart":249,"redirectEnd":0,"redirectStart":0,"requestStart":265.7999999523163,"responseEnd":528.6999998092651,"responseStart":282.89999985694885,"secureConnectionStart":249},{"duration":35.700000047683716,"initiatorType":"script","name":"https://jira.mariadb.org/s/94c15bff32baef80f4096a08aceae8bc-CDN/lu2bu7/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":249.09999990463257,"connectEnd":249.09999990463257,"connectStart":249.09999990463257,"domainLookupEnd":249.09999990463257,"domainLookupStart":249.09999990463257,"fetchStart":249.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":267.19999980926514,"responseEnd":284.7999999523163,"responseStart":283.39999985694885,"secureConnectionStart":249.09999990463257},{"duration":38.700000047683716,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":249.19999980926514,"connectEnd":249.19999980926514,"connectStart":249.19999980926514,"domainLookupEnd":249.19999980926514,"domainLookupStart":249.19999980926514,"fetchStart":249.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":267.5,"responseEnd":287.89999985694885,"responseStart":285.09999990463257,"secureConnectionStart":249.19999980926514},{"duration":16.100000143051147,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2bu7/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":249.39999985694885,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":249.39999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":265.5,"responseStart":0,"secureConnectionStart":0},{"duration":38.799999952316284,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":249.39999985694885,"connectEnd":249.39999985694885,"connectStart":249.39999985694885,"domainLookupEnd":249.39999985694885,"domainLookupStart":249.39999985694885,"fetchStart":249.39999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":268.19999980926514,"responseEnd":288.19999980926514,"responseStart":286.2999999523163,"secureConnectionStart":249.39999985694885},{"duration":40.39999985694885,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":249.5,"connectEnd":249.5,"connectStart":249.5,"domainLookupEnd":249.5,"domainLookupStart":249.5,"fetchStart":249.5,"redirectEnd":0,"redirectStart":0,"requestStart":271,"responseEnd":289.89999985694885,"responseStart":288.7999999523163,"secureConnectionStart":249.5},{"duration":17.40000009536743,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2bu7/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/css/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.css?jira.create.linked.issue=true","startTime":249.59999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":249.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":267,"responseStart":0,"secureConnectionStart":0},{"duration":43.40000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/3339d87fa2538a859872f2df449bf8d0-CDN/lu2bu7/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/js/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.js?jira.create.linked.issue=true&locale=en","startTime":249.69999980926514,"connectEnd":249.69999980926514,"connectStart":249.69999980926514,"domainLookupEnd":249.69999980926514,"domainLookupStart":249.69999980926514,"fetchStart":249.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":272.7999999523163,"responseEnd":293.09999990463257,"responseStart":291.09999990463257,"secureConnectionStart":249.69999980926514},{"duration":226.89999985694885,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":277.7999999523163,"connectEnd":277.7999999523163,"connectStart":277.7999999523163,"domainLookupEnd":277.7999999523163,"domainLookupStart":277.7999999523163,"fetchStart":277.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":288.39999985694885,"responseEnd":504.69999980926514,"responseStart":498.89999985694885,"secureConnectionStart":277.7999999523163},{"duration":222.70000004768372,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":282.19999980926514,"connectEnd":282.19999980926514,"connectStart":282.19999980926514,"domainLookupEnd":282.19999980926514,"domainLookupStart":282.19999980926514,"fetchStart":282.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":292.2999999523163,"responseEnd":504.89999985694885,"responseStart":499.89999985694885,"secureConnectionStart":282.19999980926514},{"duration":48.200000047683716,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":543.1999998092651,"connectEnd":543.1999998092651,"connectStart":543.1999998092651,"domainLookupEnd":543.1999998092651,"domainLookupStart":543.1999998092651,"fetchStart":543.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":559.7999999523163,"responseEnd":591.3999998569489,"responseStart":590.5999999046326,"secureConnectionStart":543.1999998092651},{"duration":214.29999995231628,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":746.0999999046326,"connectEnd":746.0999999046326,"connectStart":746.0999999046326,"domainLookupEnd":746.0999999046326,"domainLookupStart":746.0999999046326,"fetchStart":746.0999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":926.5,"responseEnd":960.3999998569489,"responseStart":958.7999999523163,"secureConnectionStart":746.0999999046326},{"duration":183.89999985694885,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":818.7999999523163,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":818.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1002.6999998092651,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":58,"responseStart":244,"responseEnd":282,"domLoading":247,"domInteractive":974,"domContentLoadedEventStart":974,"domContentLoadedEventEnd":1026,"domComplete":1337,"loadEventStart":1337,"loadEventEnd":1338,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":950.0999999046326},{"name":"bigPipe.sidebar-id.end","time":950.8999998569489},{"name":"bigPipe.activity-panel-pipe-id.start","time":951},{"name":"bigPipe.activity-panel-pipe-id.end","time":952.3999998569489},{"name":"activityTabFullyLoaded","time":1044.7999999523163}],"measures":[],"correlationId":"252db898f79a50","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":112,"dbReadsTimeInMs":41,"dbConnsTimeInMs":50,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}