Type:
Bug
Priority:
Critical
Resolution:
Fixed
Affects Version/s:
10.4(EOL) , 10.5 , 10.6 , 10.8(EOL) , 10.9(EOL) , 10.10(EOL) , 10.11
After a parallel worker thread hits an error that must be error-stopping the slave
show slave status does display the error along with YES of the slave running status, e.g
show slave status\G
*************************** 1. row ***************************
Slave_IO_State: Waiting for master to send event
Master_Host: 172.31.15.61
Master_User: db02replication
Master_Port: 3306
Connect_Retry: 60
Master_Log_File: mysql-bin.028940
Read_Master_Log_Pos: 1050157656
Relay_Log_File: relay-bin.000134
Relay_Log_Pos: 964684321
Relay_Master_Log_File: mysql-bin.028938
Slave_IO_Running: Yes
Slave_SQL_Running: Yes
Replicate_Do_DB:
Replicate_Ignore_DB:
Replicate_Do_Table:
Replicate_Ignore_Table:
Replicate_Wild_Do_Table:
Replicate_Wild_Ignore_Table:
Last_Errno: 1062
Last_Error: Could not execute Write_rows_v1 event on table pingtree.campaignOutboundDupeEmail; Duplicate entry '877-damien_cunningham88@outlook.com' for key 'codePrimaryEmail', Error_code: 1062; handler error HA_ERR_FOUND_DUPP_KEY; the event's master log mysql-bin.028938, end_log_pos 964684486
Skip_Counter: 0
Exec_Master_Log_Pos: 964684022
Slave threads however instead of expected exiting may hang like
+------+--------------+--------------------+------+--------------+-------+-----------------------------------------------+------------------+----------+
| Id | User | Host | db | Command | Time | State | Info | Progress |
+------+--------------+--------------------+------+--------------+-------+-----------------------------------------------+------------------+----------+
| 5 | system user | | NULL | Slave_IO | 51160 | Waiting for master to send event | NULL | 0.000 |
| 19 | mariadbadmin | 172.31.15.18:58548 | NULL | Sleep | 5 | | NULL | 0.000 |
| 61 | mariadbadmin | 172.31.15.18:46002 | NULL | Sleep | 10 | | NULL | 0.000 |
| 2394 | system user | | NULL | Slave_worker | 50852 | closing tables | NULL | 0.000 |
| 2395 | system user | | NULL | Slave_worker | 50852 | Waiting for prior transaction to start commit | NULL | 0.000 |
| 2396 | system user | | NULL | Slave_worker | 50852 | Waiting for prior transaction to start commit | NULL | 0.000 |
| 2397 | system user | | NULL | Slave_worker | 50852 | Waiting for prior transaction to start commit | NULL | 0.000 |
| 2398 | system user | | NULL | Slave_worker | 50852 | Waiting for prior transaction to start commit | NULL | 0.000 |
| 2399 | system user | | NULL | Slave_worker | 50852 | Waiting for prior transaction to start commit | NULL | 0.000 |
| 2400 | system user | | NULL | Slave_worker | 50852 | Waiting for prior transaction to start commit | NULL | 0.000 |
| 2401 | system user | | NULL | Slave_worker | 50852 | Waiting for prior transaction to start commit | NULL | 0.000 |
| 2402 | system user | | NULL | Slave_worker | 50852 | Waiting for prior transaction to start commit | NULL | 0.000 |
| 2403 | system user | | NULL | Slave_worker | 50852 | Waiting for prior transaction to start commit | NULL | 0.000 |
| 2404 | system user | | NULL | Slave_worker | 50852 | Waiting for prior transaction to start commit | NULL | 0.000 |
| 2405 | system user | | NULL | Slave_worker | 50852 | Waiting for prior transaction to start commit | NULL | 0.000 |
| 2393 | system user | | NULL | Slave_SQL | 50860 | Waiting for room in worker thread event queue | NULL | 0.000 |
Slave_SQL may also hang in a different state.
Upon analysis it turned out that closing tables worker got entrapped in endless looping
in mark_start_commit_inner across already garbage-collected items including rgi->gco itself.
The reason of the belated access is identified as possible out-of-order group committing
in the error branch.
The issue applies to both the conservative and optimistic modes.
A patch, to be committed soon, fixes the case to reinforce group_commit_orderer -based order for errored-out workers.
{"report":{"fcp":638.2000000476837,"ttfb":147.5,"pageVisibility":"visible","entityId":119885,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"0dfd21c2-0877-4f4e-a506-a9160ceba131","navigationType":0,"readyForUser":720.9000000953674,"redirectCount":0,"resourceLoadedEnd":935.7999999523163,"resourceLoadedStart":153,"resourceTiming":[{"duration":13.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":153,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":153,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":166.5,"responseStart":0,"secureConnectionStart":0},{"duration":14,"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":153.20000004768372,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":153.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":167.20000004768372,"responseStart":0,"secureConnectionStart":0},{"duration":68.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":153.29999995231628,"connectEnd":153.29999995231628,"connectStart":153.29999995231628,"domainLookupEnd":153.29999995231628,"domainLookupStart":153.29999995231628,"fetchStart":153.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":153.29999995231628,"responseEnd":221.79999995231628,"responseStart":221.79999995231628,"secureConnectionStart":153.29999995231628},{"duration":164.5,"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":153.40000009536743,"connectEnd":153.40000009536743,"connectStart":153.40000009536743,"domainLookupEnd":153.40000009536743,"domainLookupStart":153.40000009536743,"fetchStart":153.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":153.40000009536743,"responseEnd":317.90000009536743,"responseStart":317.90000009536743,"secureConnectionStart":153.40000009536743},{"duration":168.10000014305115,"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":153.5,"connectEnd":153.5,"connectStart":153.5,"domainLookupEnd":153.5,"domainLookupStart":153.5,"fetchStart":153.5,"redirectEnd":0,"redirectStart":0,"requestStart":153.5,"responseEnd":321.60000014305115,"responseStart":321.60000014305115,"secureConnectionStart":153.5},{"duration":168.59999990463257,"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":153.60000014305115,"connectEnd":153.60000014305115,"connectStart":153.60000014305115,"domainLookupEnd":153.60000014305115,"domainLookupStart":153.60000014305115,"fetchStart":153.60000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":153.60000014305115,"responseEnd":322.2000000476837,"responseStart":322.2000000476837,"secureConnectionStart":153.60000014305115},{"duration":169,"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":153.60000014305115,"connectEnd":153.60000014305115,"connectStart":153.60000014305115,"domainLookupEnd":153.60000014305115,"domainLookupStart":153.60000014305115,"fetchStart":153.60000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":153.60000014305115,"responseEnd":322.60000014305115,"responseStart":322.60000014305115,"secureConnectionStart":153.60000014305115},{"duration":169.70000004768372,"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":153.79999995231628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":153.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":323.5,"responseStart":0,"secureConnectionStart":0},{"duration":169.80000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":153.79999995231628,"connectEnd":153.79999995231628,"connectStart":153.79999995231628,"domainLookupEnd":153.79999995231628,"domainLookupStart":153.79999995231628,"fetchStart":153.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":153.79999995231628,"responseEnd":323.60000014305115,"responseStart":323.60000014305115,"secureConnectionStart":153.79999995231628},{"duration":170.10000014305115,"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":154,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":154,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":324.10000014305115,"responseStart":0,"secureConnectionStart":0},{"duration":170,"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":154.20000004768372,"connectEnd":154.20000004768372,"connectStart":154.20000004768372,"domainLookupEnd":154.20000004768372,"domainLookupStart":154.20000004768372,"fetchStart":154.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":154.20000004768372,"responseEnd":324.2000000476837,"responseStart":324.2000000476837,"secureConnectionStart":154.20000004768372},{"duration":301.09999990463257,"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":154.90000009536743,"connectEnd":154.90000009536743,"connectStart":154.90000009536743,"domainLookupEnd":154.90000009536743,"domainLookupStart":154.90000009536743,"fetchStart":154.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":154.90000009536743,"responseEnd":456,"responseStart":456,"secureConnectionStart":154.90000009536743},{"duration":765,"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":154.90000009536743,"connectEnd":154.90000009536743,"connectStart":154.90000009536743,"domainLookupEnd":154.90000009536743,"domainLookupStart":154.90000009536743,"fetchStart":154.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":154.90000009536743,"responseEnd":919.9000000953674,"responseStart":919.9000000953674,"secureConnectionStart":154.90000009536743},{"duration":105.70000004768372,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":372.7999999523163,"connectEnd":372.7999999523163,"connectStart":372.7999999523163,"domainLookupEnd":372.7999999523163,"domainLookupStart":372.7999999523163,"fetchStart":372.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":372.7999999523163,"responseEnd":478.5,"responseStart":478.5,"secureConnectionStart":372.7999999523163},{"duration":338.69999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/e65b778d185daf5aee24936755b43da6/_/download/contextbatch/js/browser-metrics-plugin.contrib,-_super,-project.issue.navigator,-jira.view.issue,-atl.general/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true","startTime":597.1000001430511,"connectEnd":597.1000001430511,"connectStart":597.1000001430511,"domainLookupEnd":597.1000001430511,"domainLookupStart":597.1000001430511,"fetchStart":597.1000001430511,"redirectEnd":0,"redirectStart":0,"requestStart":597.1000001430511,"responseEnd":935.7999999523163,"responseStart":935.7999999523163,"secureConnectionStart":597.1000001430511},{"duration":304.40000009536743,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":631.7999999523163,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":631.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":936.2000000476837,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":8,"responseStart":148,"responseEnd":151,"domLoading":151,"domInteractive":942,"domContentLoadedEventStart":942,"domContentLoadedEventEnd":983,"domComplete":1661,"loadEventStart":1661,"loadEventEnd":1663,"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.7999999523163},{"name":"bigPipe.sidebar-id.end","time":922.7000000476837},{"name":"bigPipe.activity-panel-pipe-id.start","time":922.7999999523163},{"name":"bigPipe.activity-panel-pipe-id.end","time":925.2000000476837},{"name":"activityTabFullyLoaded","time":989.9000000953674}],"measures":[],"correlationId":"af15aab2bf6aaa","effectiveType":"4g","downlink":9.3,"rtt":0,"serverDuration":79,"dbReadsTimeInMs":11,"dbConnsTimeInMs":19,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}