MariaDB gets the following deadlock error:
localhost-dir: sql_create.c:837-5 Fill File table Query failed: INSERT INTO File
(FileIndex, JobId, PathId, FilenameId, LStat, MD5, DeltaSeq) SELECT
batch.FileIndex, batch.JobId, Path.PathId, Filename.FilenameId,batch.LStat,
batch.MD5, batch.DeltaSeq FROM batch JOIN Path ON (batch.Path = Path.Path) JOIN
Filename ON (batch.Name = Filename.Name): ERR=Deadlock found when trying to get
lock;
When running the Bacula 9.0.1 regression script named: three-pool-virtual-test
This does not occur on any version of MySQL, nor the Ubuntu version 10.0 of MariaDB. The code has been stable for many years.
I am running all instances of MariaDB and MySQL out of the box. I have changed no parameters.
This appears to be a false deadlock detection. Note, it is 100% reproducible.
{"report":{"fcp":2107.0999999046326,"ttfb":618.5999999046326,"pageVisibility":"visible","entityId":62282,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"6ac13d77-c91c-4a36-89ff-c3f3da85470f","navigationType":0,"readyForUser":2209.4000000953674,"redirectCount":0,"resourceLoadedEnd":1953.0999999046326,"resourceLoadedStart":627.2000002861023,"resourceTiming":[{"duration":458.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":627.2000002861023,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":627.2000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1085.7000002861023,"responseStart":0,"secureConnectionStart":0},{"duration":458.40000009536743,"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":627.5999999046326,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":627.5999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1086,"responseStart":0,"secureConnectionStart":0},{"duration":861.5999999046326,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":627.8000001907349,"connectEnd":627.8000001907349,"connectStart":627.8000001907349,"domainLookupEnd":627.8000001907349,"domainLookupStart":627.8000001907349,"fetchStart":627.8000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":1088.9000000953674,"responseEnd":1489.4000000953674,"responseStart":1117.0999999046326,"secureConnectionStart":627.8000001907349},{"duration":1128.3999996185303,"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":628.7000002861023,"connectEnd":628.7000002861023,"connectStart":628.7000002861023,"domainLookupEnd":628.7000002861023,"domainLookupStart":628.7000002861023,"fetchStart":628.7000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":1090.5,"responseEnd":1757.0999999046326,"responseStart":1120.4000000953674,"secureConnectionStart":628.7000002861023},{"duration":497.30000019073486,"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":629.4000000953674,"connectEnd":629.4000000953674,"connectStart":629.4000000953674,"domainLookupEnd":629.4000000953674,"domainLookupStart":629.4000000953674,"fetchStart":629.4000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":1091.7000002861023,"responseEnd":1126.7000002861023,"responseStart":1124.0999999046326,"secureConnectionStart":629.4000000953674},{"duration":507.8999996185303,"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":629.7000002861023,"connectEnd":629.7000002861023,"connectStart":629.7000002861023,"domainLookupEnd":629.7000002861023,"domainLookupStart":629.7000002861023,"fetchStart":629.7000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":1116.5,"responseEnd":1137.5999999046326,"responseStart":1134,"secureConnectionStart":629.7000002861023},{"duration":508.7000002861023,"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":630.0999999046326,"connectEnd":630.0999999046326,"connectStart":630.0999999046326,"domainLookupEnd":630.0999999046326,"domainLookupStart":630.0999999046326,"fetchStart":630.0999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":1116.9000000953674,"responseEnd":1138.8000001907349,"responseStart":1135.5,"secureConnectionStart":630.0999999046326},{"duration":460.59999990463257,"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":630.8000001907349,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":630.8000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1091.4000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":509.8999996185303,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":631.7000002861023,"connectEnd":631.7000002861023,"connectStart":631.7000002861023,"domainLookupEnd":631.7000002861023,"domainLookupStart":631.7000002861023,"fetchStart":631.7000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":1119.2000002861023,"responseEnd":1141.5999999046326,"responseStart":1139.0999999046326,"secureConnectionStart":631.7000002861023},{"duration":478.09999990463257,"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":631.9000000953674,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":631.9000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1110,"responseStart":0,"secureConnectionStart":0},{"duration":513.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":632.0999999046326,"connectEnd":632.0999999046326,"connectStart":632.0999999046326,"domainLookupEnd":632.0999999046326,"domainLookupStart":632.0999999046326,"fetchStart":632.0999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":1119.4000000953674,"responseEnd":1145.5999999046326,"responseStart":1142.2000002861023,"secureConnectionStart":632.0999999046326},{"duration":1307.7999997138977,"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":641.2000002861023,"connectEnd":641.2000002861023,"connectStart":641.2000002861023,"domainLookupEnd":641.2000002861023,"domainLookupStart":641.2000002861023,"fetchStart":641.2000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":1934.9000000953674,"responseEnd":1949,"responseStart":1948.4000000953674,"secureConnectionStart":641.2000002861023},{"duration":1311.7999997138977,"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":641.3000001907349,"connectEnd":641.3000001907349,"connectStart":641.3000001907349,"domainLookupEnd":641.3000001907349,"domainLookupStart":641.3000001907349,"fetchStart":641.3000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":1939.3000001907349,"responseEnd":1953.0999999046326,"responseStart":1951.9000000953674,"secureConnectionStart":641.3000001907349},{"duration":263.7999997138977,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1714.3000001907349,"connectEnd":1714.3000001907349,"connectStart":1714.3000001907349,"domainLookupEnd":1714.3000001907349,"domainLookupStart":1714.3000001907349,"fetchStart":1714.3000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":1941.4000000953674,"responseEnd":1978.0999999046326,"responseStart":1977.0999999046326,"secureConnectionStart":1714.3000001907349}],"fetchStart":0,"domainLookupStart":362,"domainLookupEnd":410,"connectStart":411,"connectEnd":434,"secureConnectionStart":421,"requestStart":435,"responseStart":619,"responseEnd":640,"domLoading":622,"domInteractive":2324,"domContentLoadedEventStart":2324,"domContentLoadedEventEnd":2387,"domComplete":3219,"loadEventStart":3219,"loadEventEnd":3220,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":2298.5},{"name":"bigPipe.sidebar-id.end","time":2299.300000190735},{"name":"bigPipe.activity-panel-pipe-id.start","time":2299.5},{"name":"bigPipe.activity-panel-pipe-id.end","time":2301.0999999046326},{"name":"activityTabFullyLoaded","time":2405.0999999046326}],"measures":[],"correlationId":"6f251d99a07c","effectiveType":"4g","downlink":9.9,"rtt":0,"serverDuration":106,"dbReadsTimeInMs":18,"dbConnsTimeInMs":30,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}