We have a Windows server that has been running MariaDB 10.1 successfully for over a year. The server remains mostly idle for long times with some read access, but occasionally there are transactions that add data (about 500k rows per commit). There can be up to 10 such transactions (one per database) at the same time and during those times the server is under quite some load (the code processing the data resides on the same server as the database).
When trying to use MariaDB 10.3, during those load times the database crashes and logs "[FATAL] InnoDB: Semaphore wait has lasted > 600 seconds. We intentionally crash the server because it appears to be hung."
I figure it could be related to MariaDB switching from XtraDB to InnoDB and on the mailing list it was suggested to file a bug.
I'm attaching the error log. I cannot attach a minidump as-is because upon inspection it contained sensitive data that I'm not allowed to disclose. If absolutely neccessary, I can try and reproduce the problem with random test data, but this might take a few days.
The mailing list entry mentioned above can be found here: https://lists.launchpad.net/maria-discuss/msg05139.html
Regards,
Tom.
{"report":{"fcp":1235.1000003814697,"ttfb":385.4000005722046,"pageVisibility":"visible","entityId":68083,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"146e46c3-0938-4dd4-b6fe-c358da757b0c","navigationType":0,"readyForUser":1348.9000005722046,"redirectCount":0,"resourceLoadedEnd":1194.8000001907349,"resourceLoadedStart":401.80000019073486,"resourceTiming":[{"duration":260.19999980926514,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":401.80000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":401.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":662,"responseStart":0,"secureConnectionStart":0},{"duration":260.70000076293945,"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":402.19999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":402.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":662.9000005722046,"responseStart":0,"secureConnectionStart":0},{"duration":398.0999994277954,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":402.4000005722046,"connectEnd":402.4000005722046,"connectStart":402.4000005722046,"domainLookupEnd":402.4000005722046,"domainLookupStart":402.4000005722046,"fetchStart":402.4000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":666.5,"responseEnd":800.5,"responseStart":683.6000003814697,"secureConnectionStart":402.4000005722046},{"duration":564.3999996185303,"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":402.80000019073486,"connectEnd":402.80000019073486,"connectStart":402.80000019073486,"domainLookupEnd":402.80000019073486,"domainLookupStart":402.80000019073486,"fetchStart":402.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":666.6999998092651,"responseEnd":967.1999998092651,"responseStart":696.6999998092651,"secureConnectionStart":402.80000019073486},{"duration":284.80000019073486,"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":403.1000003814697,"connectEnd":403.1000003814697,"connectStart":403.1000003814697,"domainLookupEnd":403.1000003814697,"domainLookupStart":403.1000003814697,"fetchStart":403.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":667.5,"responseEnd":687.9000005722046,"responseStart":686.1000003814697,"secureConnectionStart":403.1000003814697},{"duration":287.0999994277954,"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":403.6000003814697,"connectEnd":403.6000003814697,"connectStart":403.6000003814697,"domainLookupEnd":403.6000003814697,"domainLookupStart":403.6000003814697,"fetchStart":403.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":668.4000005722046,"responseEnd":690.6999998092651,"responseStart":688.5,"secureConnectionStart":403.6000003814697},{"duration":287.0999994277954,"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":403.9000005722046,"connectEnd":403.9000005722046,"connectStart":403.9000005722046,"domainLookupEnd":403.9000005722046,"domainLookupStart":403.9000005722046,"fetchStart":403.9000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":670.4000005722046,"responseEnd":691,"responseStart":689.3000001907349,"secureConnectionStart":403.9000005722046},{"duration":265.0999994277954,"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":404.1000003814697,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":404.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":669.1999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":288.5,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":404.19999980926514,"connectEnd":404.19999980926514,"connectStart":404.19999980926514,"domainLookupEnd":404.19999980926514,"domainLookupStart":404.19999980926514,"fetchStart":404.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":673.8000001907349,"responseEnd":692.6999998092651,"responseStart":691.6999998092651,"secureConnectionStart":404.19999980926514},{"duration":266.29999923706055,"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":404.4000005722046,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":404.4000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":670.6999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":291.69999980926514,"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":404.5,"connectEnd":404.5,"connectStart":404.5,"domainLookupEnd":404.5,"domainLookupStart":404.5,"fetchStart":404.5,"redirectEnd":0,"redirectStart":0,"requestStart":674.1000003814697,"responseEnd":696.1999998092651,"responseStart":694.9000005722046,"secureConnectionStart":404.5},{"duration":553.1000003814697,"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":418.30000019073486,"connectEnd":418.30000019073486,"connectStart":418.30000019073486,"domainLookupEnd":418.30000019073486,"domainLookupStart":418.30000019073486,"fetchStart":418.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":901,"responseEnd":971.4000005722046,"responseStart":970.1999998092651,"secureConnectionStart":418.30000019073486},{"duration":774.5,"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":420.30000019073486,"connectEnd":420.30000019073486,"connectStart":420.30000019073486,"domainLookupEnd":420.30000019073486,"domainLookupStart":420.30000019073486,"fetchStart":420.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":1182,"responseEnd":1194.8000001907349,"responseStart":1193,"secureConnectionStart":420.30000019073486},{"duration":254.80000019073486,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":964.8000001907349,"connectEnd":964.8000001907349,"connectStart":964.8000001907349,"domainLookupEnd":964.8000001907349,"domainLookupStart":964.8000001907349,"fetchStart":964.8000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":1183.8000001907349,"responseEnd":1219.6000003814697,"responseStart":1218.1999998092651,"secureConnectionStart":964.8000001907349}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":195,"responseStart":385,"responseEnd":419,"domLoading":389,"domInteractive":1429,"domContentLoadedEventStart":1429,"domContentLoadedEventEnd":1493,"domComplete":2267,"loadEventStart":2267,"loadEventEnd":2267,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1391.6000003814697},{"name":"bigPipe.sidebar-id.end","time":1392.6000003814697},{"name":"bigPipe.activity-panel-pipe-id.start","time":1392.8000001907349},{"name":"bigPipe.activity-panel-pipe-id.end","time":1396.4000005722046},{"name":"activityTabFullyLoaded","time":1554}],"measures":[],"correlationId":"db185ca4518191","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":127,"dbReadsTimeInMs":22,"dbConnsTimeInMs":38,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
@Marko Mäkelä, this could be the case
We tried observing what was wrong by using gdb and although we couldn't see much we saw that it was hung between multiple drop commands
This was because of a script that drops and recreates the databases, since then we changed the timing of these scripts which fixed the issue for some time but this morning it crashed again after two weeks but we can't keep gdb running since this eventually also causes the server to crash