The bug appears as a slave SQL thread hanging in
rpl_parallel_thread_pool::get_thread() while there are no slave worker
threads to awake it.
The reason of the hang is that at the parallel slave worker pool
activation the being stared SQL thread could read the worker pool size
concurrently with pool deactivation. At reading the SQL thread did not
employ necessary protection from a race.
One way to fix it is to make the SQL thread at the pool activation first
to grab the same lock as potential deactivator also does prior
to access the pool size.
- relates to
-
MDEV-9573
'Stop slave' hangs on replication slave
-
-
Closed
{"report":{"fcp":944.0999999046326,"ttfb":114.29999995231628,"pageVisibility":"visible","entityId":70045,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"625eca7f-d5fe-432a-b40b-8e5b17dd468b","navigationType":0,"readyForUser":991.5999999046326,"redirectCount":0,"resourceLoadedEnd":683.5999999046326,"resourceLoadedStart":119.5,"resourceTiming":[{"duration":336.7999999523163,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":119.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":119.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":456.2999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":336.7000000476837,"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":119.79999995231628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":119.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":456.5,"responseStart":0,"secureConnectionStart":0},{"duration":367.2000000476837,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":119.89999985694885,"connectEnd":119.89999985694885,"connectStart":119.89999985694885,"domainLookupEnd":119.89999985694885,"domainLookupStart":119.89999985694885,"fetchStart":119.89999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":119.89999985694885,"responseEnd":487.09999990463257,"responseStart":487.09999990463257,"secureConnectionStart":119.89999985694885},{"duration":392.39999985694885,"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":120,"connectEnd":120,"connectStart":120,"domainLookupEnd":120,"domainLookupStart":120,"fetchStart":120,"redirectEnd":0,"redirectStart":0,"requestStart":120,"responseEnd":512.3999998569489,"responseStart":512.3999998569489,"secureConnectionStart":120},{"duration":396.2000000476837,"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":120.09999990463257,"connectEnd":120.09999990463257,"connectStart":120.09999990463257,"domainLookupEnd":120.09999990463257,"domainLookupStart":120.09999990463257,"fetchStart":120.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":120.09999990463257,"responseEnd":516.2999999523163,"responseStart":516.2999999523163,"secureConnectionStart":120.09999990463257},{"duration":396.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":120.20000004768372,"connectEnd":120.20000004768372,"connectStart":120.20000004768372,"domainLookupEnd":120.20000004768372,"domainLookupStart":120.20000004768372,"fetchStart":120.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":120.20000004768372,"responseEnd":516.7999999523163,"responseStart":516.7999999523163,"secureConnectionStart":120.20000004768372},{"duration":397,"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":120.29999995231628,"connectEnd":120.29999995231628,"connectStart":120.29999995231628,"domainLookupEnd":120.29999995231628,"domainLookupStart":120.29999995231628,"fetchStart":120.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":120.29999995231628,"responseEnd":517.2999999523163,"responseStart":517.2999999523163,"secureConnectionStart":120.29999995231628},{"duration":397.40000009536743,"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":120.39999985694885,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":120.39999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":517.7999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":397.2999999523163,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":120.5,"connectEnd":120.5,"connectStart":120.5,"domainLookupEnd":120.5,"domainLookupStart":120.5,"fetchStart":120.5,"redirectEnd":0,"redirectStart":0,"requestStart":120.5,"responseEnd":517.7999999523163,"responseStart":517.7999999523163,"secureConnectionStart":120.5},{"duration":397.7999999523163,"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":120.59999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":120.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":518.3999998569489,"responseStart":0,"secureConnectionStart":0},{"duration":397.7999999523163,"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":120.70000004768372,"connectEnd":120.70000004768372,"connectStart":120.70000004768372,"domainLookupEnd":120.70000004768372,"domainLookupStart":120.70000004768372,"fetchStart":120.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":120.70000004768372,"responseEnd":518.5,"responseStart":518.5,"secureConnectionStart":120.70000004768372},{"duration":516.2999999523163,"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":121.29999995231628,"connectEnd":121.29999995231628,"connectStart":121.29999995231628,"domainLookupEnd":121.29999995231628,"domainLookupStart":121.29999995231628,"fetchStart":121.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":121.29999995231628,"responseEnd":637.5999999046326,"responseStart":637.5,"secureConnectionStart":121.29999995231628},{"duration":562.2000000476837,"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":121.39999985694885,"connectEnd":121.39999985694885,"connectStart":121.39999985694885,"domainLookupEnd":121.39999985694885,"domainLookupStart":121.39999985694885,"fetchStart":121.39999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":121.39999985694885,"responseEnd":683.5999999046326,"responseStart":683.5999999046326,"secureConnectionStart":121.39999985694885}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":4,"responseStart":114,"responseEnd":117,"domLoading":117,"domInteractive":1037,"domContentLoadedEventStart":1037,"domContentLoadedEventEnd":1075,"domComplete":1899,"loadEventStart":1899,"loadEventEnd":1901,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1019.0999999046326},{"name":"bigPipe.sidebar-id.end","time":1019.8999998569489},{"name":"bigPipe.activity-panel-pipe-id.start","time":1020.0999999046326},{"name":"bigPipe.activity-panel-pipe-id.end","time":1023},{"name":"activityTabFullyLoaded","time":1081.5}],"measures":[],"correlationId":"2a4f2eb66aa333","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":60,"dbReadsTimeInMs":9,"dbConnsTimeInMs":15,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}