If MariaDB receives SIGTERM after the call to start_signal_handler() but before the call to init_slave() then kill_server_thread() will call close_connections() (through kill_server() ) which will ask all threads to terminate and will start to wait on COND_thread_count. After that init_slave() will be called, it will call run_slave_init_thread(), which will launch handle_slave_init() and will start to wait on COND_thread_count too. At this point if handle_slave_init() calls mysql_cond_signal(&COND_thread_count) then it can wake up close_connections() which will do nothing and return back to sleep. But run_slave_init_thread() will remain sleeping and no one will ever wake it up, MariaDB will hang forever with "kill -9" as the only chance to exit.
So the call to mysql_cond_signal(&COND_thread_count) in the handle_slave_init() should be changed to mysql_cond_broadcast(&COND_thread_count).
Note that calling *_broadcast instead of *_signal matches all other usages of COND_thread_count throughout MariaDB code.
Transition |
Time In Source Status |
Execution Times |
Open |
|
In Progress |
|
2d 15h 17m
|
1
|
In Progress |
|
Closed |
|
21s
|
1
|
{"report":{"fcp":811.5,"ttfb":163.5,"pageVisibility":"visible","entityId":34609,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"4066fc42-4947-4400-8644-269755e7ee51","navigationType":0,"readyForUser":875.1000003814697,"redirectCount":0,"resourceLoadedEnd":766,"resourceLoadedStart":169.89999961853027,"resourceTiming":[{"duration":132.10000038146973,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":169.89999961853027,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":169.89999961853027,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":302,"responseStart":0,"secureConnectionStart":0},{"duration":132.10000038146973,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2cib/820016/12ta74/2bf333562ca6724060a9d5f1535471f6/_/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":170.19999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":170.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":302.30000019073486,"responseStart":0,"secureConnectionStart":0},{"duration":140.70000076293945,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":170.39999961853027,"connectEnd":170.39999961853027,"connectStart":170.39999961853027,"domainLookupEnd":170.39999961853027,"domainLookupStart":170.39999961853027,"fetchStart":170.39999961853027,"redirectEnd":0,"redirectStart":0,"requestStart":170.39999961853027,"responseEnd":311.1000003814697,"responseStart":311.1000003814697,"secureConnectionStart":170.39999961853027},{"duration":187.39999961853027,"initiatorType":"script","name":"https://jira.mariadb.org/s/2d8175ec2fa4c816e8023260bd8c1786-CDN/lu2cib/820016/12ta74/2bf333562ca6724060a9d5f1535471f6/_/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":170.60000038146973,"connectEnd":170.60000038146973,"connectStart":170.60000038146973,"domainLookupEnd":170.60000038146973,"domainLookupStart":170.60000038146973,"fetchStart":170.60000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":170.60000038146973,"responseEnd":358,"responseStart":358,"secureConnectionStart":170.60000038146973},{"duration":191.9000005722046,"initiatorType":"script","name":"https://jira.mariadb.org/s/a9324d6758d385eb45c462685ad88f1d-CDN/lu2cib/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":170.69999980926514,"connectEnd":170.69999980926514,"connectStart":170.69999980926514,"domainLookupEnd":170.69999980926514,"domainLookupStart":170.69999980926514,"fetchStart":170.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":170.69999980926514,"responseEnd":362.6000003814697,"responseStart":362.6000003814697,"secureConnectionStart":170.69999980926514},{"duration":192.30000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":171,"connectEnd":171,"connectStart":171,"domainLookupEnd":171,"domainLookupStart":171,"fetchStart":171,"redirectEnd":0,"redirectStart":0,"requestStart":171,"responseEnd":363.30000019073486,"responseStart":363.30000019073486,"secureConnectionStart":171},{"duration":192.60000038146973,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":171.19999980926514,"connectEnd":171.19999980926514,"connectStart":171.19999980926514,"domainLookupEnd":171.19999980926514,"domainLookupStart":171.19999980926514,"fetchStart":171.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":171.19999980926514,"responseEnd":363.80000019073486,"responseStart":363.80000019073486,"secureConnectionStart":171.19999980926514},{"duration":282.8999996185303,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2cib/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":171.30000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":171.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":454.19999980926514,"responseStart":0,"secureConnectionStart":0},{"duration":193.10000038146973,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":171.5,"connectEnd":171.5,"connectStart":171.5,"domainLookupEnd":171.5,"domainLookupStart":171.5,"fetchStart":171.5,"redirectEnd":0,"redirectStart":0,"requestStart":171.5,"responseEnd":364.6000003814697,"responseStart":364.6000003814697,"secureConnectionStart":171.5},{"duration":282.69999980926514,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2cib/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":171.60000038146973,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":171.60000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":454.30000019073486,"responseStart":0,"secureConnectionStart":0},{"duration":193.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/5d5e8fe91fbc506585e83ea3b62ccc4b-CDN/lu2cib/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":171.80000019073486,"connectEnd":171.80000019073486,"connectStart":171.80000019073486,"domainLookupEnd":171.80000019073486,"domainLookupStart":171.80000019073486,"fetchStart":171.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":171.80000019073486,"responseEnd":365.30000019073486,"responseStart":365.30000019073486,"secureConnectionStart":171.80000019073486},{"duration":373.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":172.5,"connectEnd":172.5,"connectStart":172.5,"domainLookupEnd":172.5,"domainLookupStart":172.5,"fetchStart":172.5,"redirectEnd":0,"redirectStart":0,"requestStart":172.5,"responseEnd":546,"responseStart":546,"secureConnectionStart":172.5},{"duration":578.6999998092651,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":172.69999980926514,"connectEnd":172.69999980926514,"connectStart":172.69999980926514,"domainLookupEnd":172.69999980926514,"domainLookupStart":172.69999980926514,"fetchStart":172.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":172.69999980926514,"responseEnd":751.3999996185303,"responseStart":751.3999996185303,"secureConnectionStart":172.69999980926514},{"duration":78,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":481.6000003814697,"connectEnd":481.6000003814697,"connectStart":481.6000003814697,"domainLookupEnd":481.6000003814697,"domainLookupStart":481.6000003814697,"fetchStart":481.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":481.6000003814697,"responseEnd":559.6000003814697,"responseStart":559.6000003814697,"secureConnectionStart":481.6000003814697},{"duration":39.19999980926514,"initiatorType":"link","name":"https://jira.mariadb.org/s/d5715adaadd168a9002b108b2b039b50-CDN/lu2cib/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":726.8000001907349,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":726.8000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":766,"responseStart":0,"secureConnectionStart":0}],"fetchStart":1,"domainLookupStart":1,"domainLookupEnd":1,"connectStart":1,"connectEnd":1,"requestStart":19,"responseStart":164,"responseEnd":166,"domLoading":168,"domInteractive":919,"domContentLoadedEventStart":919,"domContentLoadedEventEnd":956,"domComplete":1019,"loadEventStart":1019,"loadEventEnd":1020,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":901.6000003814697},{"name":"bigPipe.sidebar-id.end","time":902.3999996185303},{"name":"bigPipe.activity-panel-pipe-id.start","time":902.6000003814697},{"name":"bigPipe.activity-panel-pipe-id.end","time":903.6000003814697},{"name":"activityTabFullyLoaded","time":968.1999998092651}],"measures":[],"correlationId":"c42e585bb1f40a","effectiveType":"4g","downlink":9.6,"rtt":0,"serverDuration":91,"dbReadsTimeInMs":12,"dbConnsTimeInMs":20,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}