rpl.rpl_semi_sync_wait_point crashes because of thd_destructor_proxy kills innodb
service threads before all slave threads has ended.
What happens is that proxy detects that no transactions are active and starts
srv_shutdown_bg_undo_sources(), but fails to take into account that new transactions
can still start, especially be slave but also by other threads. In addition there is no
mute when checking for active transaction so this is not safe.
Suggestion is to mark innodb server threads and in close_connection first shutdown all other threads, including events, and then last inform destructor proxy and other innodb threads that they can now safely be shut down.
{"report":{"fcp":1806.7999999523163,"ttfb":495.10000014305115,"pageVisibility":"visible","entityId":62542,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"b6dbc7ee-6b09-4dd4-acbe-084a8e6de9f9","navigationType":0,"readyForUser":1879.6000001430511,"redirectCount":0,"resourceLoadedEnd":2119.5,"resourceLoadedStart":500.7000000476837,"resourceTiming":[{"duration":433.90000009536743,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":500.7000000476837,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":500.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":934.6000001430511,"responseStart":0,"secureConnectionStart":0},{"duration":433.90000009536743,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/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&whisper-enabled=true","startTime":501,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":501,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":934.9000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":807.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":501.2000000476837,"connectEnd":501.2000000476837,"connectStart":501.2000000476837,"domainLookupEnd":501.2000000476837,"domainLookupStart":501.2000000476837,"fetchStart":501.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":501.2000000476837,"responseEnd":1308.7000000476837,"responseStart":1308.7000000476837,"secureConnectionStart":501.2000000476837},{"duration":913.1000001430511,"initiatorType":"script","name":"https://jira.mariadb.org/s/2d8175ec2fa4c816e8023260bd8c1786-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/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&whisper-enabled=true","startTime":501.2999999523163,"connectEnd":501.2999999523163,"connectStart":501.2999999523163,"domainLookupEnd":501.2999999523163,"domainLookupStart":501.2999999523163,"fetchStart":501.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":501.2999999523163,"responseEnd":1414.4000000953674,"responseStart":1414.4000000953674,"secureConnectionStart":501.2999999523163},{"duration":916.6999998092651,"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":501.60000014305115,"connectEnd":501.60000014305115,"connectStart":501.60000014305115,"domainLookupEnd":501.60000014305115,"domainLookupStart":501.60000014305115,"fetchStart":501.60000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":501.60000014305115,"responseEnd":1418.2999999523163,"responseStart":1418.2999999523163,"secureConnectionStart":501.60000014305115},{"duration":917.2000000476837,"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":501.7000000476837,"connectEnd":501.7000000476837,"connectStart":501.7000000476837,"domainLookupEnd":501.7000000476837,"domainLookupStart":501.7000000476837,"fetchStart":501.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":501.7000000476837,"responseEnd":1418.9000000953674,"responseStart":1418.9000000953674,"secureConnectionStart":501.7000000476837},{"duration":917.3999998569489,"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":501.90000009536743,"connectEnd":501.90000009536743,"connectStart":501.90000009536743,"domainLookupEnd":501.90000009536743,"domainLookupStart":501.90000009536743,"fetchStart":501.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":501.90000009536743,"responseEnd":1419.2999999523163,"responseStart":1419.2999999523163,"secureConnectionStart":501.90000009536743},{"duration":968.1999998092651,"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":502.10000014305115,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":502.10000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1470.2999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":917.4000000953674,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":502.2999999523163,"connectEnd":502.2999999523163,"connectStart":502.2999999523163,"domainLookupEnd":502.2999999523163,"domainLookupStart":502.2999999523163,"fetchStart":502.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":502.2999999523163,"responseEnd":1419.7000000476837,"responseStart":1419.7000000476837,"secureConnectionStart":502.2999999523163},{"duration":968.0999999046326,"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":502.40000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":502.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1470.5,"responseStart":0,"secureConnectionStart":0},{"duration":917.9000000953674,"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":502.5,"connectEnd":502.5,"connectStart":502.5,"domainLookupEnd":502.5,"domainLookupStart":502.5,"fetchStart":502.5,"redirectEnd":0,"redirectStart":0,"requestStart":502.5,"responseEnd":1420.4000000953674,"responseStart":1420.4000000953674,"secureConnectionStart":502.5},{"duration":1299.7000000476837,"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":503.7000000476837,"connectEnd":503.7000000476837,"connectStart":503.7000000476837,"domainLookupEnd":503.7000000476837,"domainLookupStart":503.7000000476837,"fetchStart":503.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":503.7000000476837,"responseEnd":1803.4000000953674,"responseStart":1803.4000000953674,"secureConnectionStart":503.7000000476837},{"duration":1615.7999999523163,"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":503.7000000476837,"connectEnd":503.7000000476837,"connectStart":503.7000000476837,"domainLookupEnd":503.7000000476837,"domainLookupStart":503.7000000476837,"fetchStart":503.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":503.7000000476837,"responseEnd":2119.5,"responseStart":2119.5,"secureConnectionStart":503.7000000476837},{"duration":324.89999985694885,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1482.6000001430511,"connectEnd":1482.6000001430511,"connectStart":1482.6000001430511,"domainLookupEnd":1482.6000001430511,"domainLookupStart":1482.6000001430511,"fetchStart":1482.6000001430511,"redirectEnd":0,"redirectStart":0,"requestStart":1482.6000001430511,"responseEnd":1807.5,"responseStart":1807.5,"secureConnectionStart":1482.6000001430511},{"duration":348.2999999523163,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1795,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1795,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":2143.2999999523163,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":356,"responseStart":495,"responseEnd":498,"domLoading":498,"domInteractive":2148,"domContentLoadedEventStart":2148,"domContentLoadedEventEnd":2192,"domComplete":3455,"loadEventStart":3456,"loadEventEnd":3457,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":2125.100000143051},{"name":"bigPipe.sidebar-id.end","time":2126},{"name":"bigPipe.activity-panel-pipe-id.start","time":2126.2000000476837},{"name":"bigPipe.activity-panel-pipe-id.end","time":2128.7000000476837},{"name":"activityTabFullyLoaded","time":2198.7999999523163}],"measures":[],"correlationId":"e89fa11bc405fc","effectiveType":"4g","downlink":9.8,"rtt":0,"serverDuration":87,"dbReadsTimeInMs":10,"dbConnsTimeInMs":19,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}