Type:
Bug
Priority:
Critical
Resolution:
Fixed
Affects Version/s:
None
The user is seeing deadlocks on slave sql thread using parallel replication.
During the backup it causes the slave_sql_thread to stuck.
Affected version is all versions up to 10.6.19
This ticket is an addition to MDEV-30423 , which did not completely fix the problem.
+--------+-------------+---------------------+---------+--------------+--------+-----------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------+----------+
| Id | User | Host | db | Command | Time | State | Info | Progress |
+--------+-------------+---------------------+---------+--------------+--------+-----------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------+----------+
| 6 | system user | | NULL | Slave_IO | 756023 | Waiting for master to send event | NULL | 0.000 |
| 8 | system user | | NULL | Slave_worker | 44471 | Waiting for backup lock | NULL | 0.000 |
| 9 | system user | | NULL | Slave_worker | 44471 | Waiting for prior transaction to commit | NULL | 0.000 |
| 10 | system user | | NULL | Slave_worker | 44471 | Waiting for prior transaction to commit | NULL | 0.000 |
| 11 | system user | | bankfrm | Slave_worker | 44471 | Waiting for backup lock | XA COMMIT ..... | 0.000 |
| 7 | system user | | NULL | Slave_SQL | 38598 | Waiting for room in worker thread event queue | NULL | 0.000 |
| 261485 | myoper | localhost | NULL | Query | 44471 | Waiting for backup lock | BACKUP STAGE BLOCK_COMMIT | 0.000 |
One of the commits is a XA transaction which causes the hang as it is waiting for a prior commits while BACKUP STAGE BLOCK_COMMIT blocks the prior commit to continue
includes
MDEV-30423
Deadlock on Replica during BACKUP STAGE BLOCK_COMMIT on XA transactions
Closed
{"report":{"fcp":814.6999998092651,"ttfb":174.10000038146973,"pageVisibility":"visible","entityId":131129,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"bb16b326-f647-4d1d-bbda-e0fc8a8eaaa3","navigationType":0,"readyForUser":889,"redirectCount":0,"resourceLoadedEnd":730.6000003814697,"resourceLoadedStart":179,"resourceTiming":[{"duration":132.60000038146973,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":179,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":179,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":311.6000003814697,"responseStart":0,"secureConnectionStart":0},{"duration":132.69999980926514,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2bv2/820016/12ta74/2380add21a9a1006587582385952de73/_/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":179.30000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":179.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":312,"responseStart":0,"secureConnectionStart":0},{"duration":141.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/e9b27a47da5fb0f74a35acd57e9847fb-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":179.5,"connectEnd":179.5,"connectStart":179.5,"domainLookupEnd":179.5,"domainLookupStart":179.5,"fetchStart":179.5,"redirectEnd":0,"redirectStart":0,"requestStart":179.5,"responseEnd":321,"responseStart":321,"secureConnectionStart":179.5},{"duration":176.10000038146973,"initiatorType":"script","name":"https://jira.mariadb.org/s/c32eb0da7ad9831253f8397e6cc26afd-CDN/lu2bv2/820016/12ta74/2380add21a9a1006587582385952de73/_/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":179.69999980926514,"connectEnd":179.69999980926514,"connectStart":179.69999980926514,"domainLookupEnd":179.69999980926514,"domainLookupStart":179.69999980926514,"fetchStart":179.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":179.69999980926514,"responseEnd":355.80000019073486,"responseStart":355.80000019073486,"secureConnectionStart":179.69999980926514},{"duration":179.89999961853027,"initiatorType":"script","name":"https://jira.mariadb.org/s/bc0bcb146314416123c992714ee00ff7-CDN/lu2bv2/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":179.9000005722046,"connectEnd":179.9000005722046,"connectStart":179.9000005722046,"domainLookupEnd":179.9000005722046,"domainLookupStart":179.9000005722046,"fetchStart":179.9000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":179.9000005722046,"responseEnd":359.80000019073486,"responseStart":359.80000019073486,"secureConnectionStart":179.9000005722046},{"duration":180.19999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":180,"connectEnd":180,"connectStart":180,"domainLookupEnd":180,"domainLookupStart":180,"fetchStart":180,"redirectEnd":0,"redirectStart":0,"requestStart":180,"responseEnd":360.19999980926514,"responseStart":360.19999980926514,"secureConnectionStart":180},{"duration":180.30000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":180.19999980926514,"connectEnd":180.19999980926514,"connectStart":180.19999980926514,"domainLookupEnd":180.19999980926514,"domainLookupStart":180.19999980926514,"fetchStart":180.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":180.19999980926514,"responseEnd":360.5,"responseStart":360.5,"secureConnectionStart":180.19999980926514},{"duration":282.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2bv2/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":180.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":180.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":463,"responseStart":0,"secureConnectionStart":0},{"duration":180.5,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":180.60000038146973,"connectEnd":180.60000038146973,"connectStart":180.60000038146973,"domainLookupEnd":180.60000038146973,"domainLookupStart":180.60000038146973,"fetchStart":180.60000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":180.60000038146973,"responseEnd":361.1000003814697,"responseStart":361.1000003814697,"secureConnectionStart":180.60000038146973},{"duration":282.30000019073486,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2bv2/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":180.80000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":180.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":463.1000003814697,"responseStart":0,"secureConnectionStart":0},{"duration":180.5999994277954,"initiatorType":"script","name":"https://jira.mariadb.org/s/719848dd97ebe0663199f49a3936487a-CDN/lu2bv2/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":180.9000005722046,"connectEnd":180.9000005722046,"connectStart":180.9000005722046,"domainLookupEnd":180.9000005722046,"domainLookupStart":180.9000005722046,"fetchStart":180.9000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":180.9000005722046,"responseEnd":361.5,"responseStart":361.5,"secureConnectionStart":180.9000005722046},{"duration":279.30000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":186.69999980926514,"connectEnd":186.69999980926514,"connectStart":186.69999980926514,"domainLookupEnd":186.69999980926514,"domainLookupStart":186.69999980926514,"fetchStart":186.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":186.69999980926514,"responseEnd":466,"responseStart":466,"secureConnectionStart":186.69999980926514},{"duration":282.1000003814697,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":187.5,"connectEnd":187.5,"connectStart":187.5,"domainLookupEnd":187.5,"domainLookupStart":187.5,"fetchStart":187.5,"redirectEnd":0,"redirectStart":0,"requestStart":187.5,"responseEnd":469.6000003814697,"responseStart":469.6000003814697,"secureConnectionStart":187.5},{"duration":19.800000190734863,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":491.1000003814697,"connectEnd":491.1000003814697,"connectStart":491.1000003814697,"domainLookupEnd":491.1000003814697,"domainLookupStart":491.1000003814697,"fetchStart":491.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":491.1000003814697,"responseEnd":510.9000005722046,"responseStart":510.9000005722046,"secureConnectionStart":491.1000003814697},{"duration":216.19999980926514,"initiatorType":"link","name":"https://jira.mariadb.org/s/d5715adaadd168a9002b108b2b039b50-CDN/lu2bv2/820016/12ta74/be4b45e9cec53099498fa61c8b7acba4/_/download/contextbatch/css/jira.project.sidebar,-_super,-project.issue.navigator,-jira.general,-jira.browse.project,-jira.view.issue,-jira.global,-atl.general,-com.atlassian.jira.projects.sidebar.init/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true","startTime":514.4000005722046,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":514.4000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":730.6000003814697,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":3,"responseStart":174,"responseEnd":187,"domLoading":178,"domInteractive":940,"domContentLoadedEventStart":940,"domContentLoadedEventEnd":979,"domComplete":1344,"loadEventStart":1344,"loadEventEnd":1346,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":921.6999998092651},{"name":"bigPipe.sidebar-id.end","time":922.5},{"name":"bigPipe.activity-panel-pipe-id.start","time":922.9000005722046},{"name":"bigPipe.activity-panel-pipe-id.end","time":925.6999998092651},{"name":"activityTabFullyLoaded","time":987.1000003814697}],"measures":[],"correlationId":"fb6f6c4ac7e9f9","effectiveType":"4g","downlink":9.7,"rtt":0,"serverDuration":112,"dbReadsTimeInMs":13,"dbConnsTimeInMs":21,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}