After upgrading from Debian Jessie to Debian Stretch using MariaDB 10.1.32 packages from mariadb.org, we immediately started having problems with our backup software, Bacula ( www.bacula.org ) - the backup jobs are failing with this error:
Deadlock found when trying to get lock; try restarting transaction
This is happening every night for different backup jobs (probably random) and has NEVER happened before. While upgrading Debian, there was only a minor version change of Bacula (7.4.3 to 7.4.4). From my observation, error is happening for randomly for same SQL commands, sometimes after 300 seconds, sometimes after 2000 seconds of execution/waiting for locks. This is happening even after i set this:
innodb_lock_wait_timeout = 100000
I also tried upgrading to 10.2.14 and set this:
innodb_deadlock_detect = 0
Which does nothing, problem persists.
- duplicates
-
MDEV-13333
Deadlock failure that does not occur elsewhere
-
-
Closed
{"report":{"fcp":1486,"ttfb":384.7000002861023,"pageVisibility":"visible","entityId":67156,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":32,"apdex":0.5,"journeyId":"e6ae9a3f-a414-4fd1-8bbc-021570987c54","navigationType":0,"readyForUser":1603.5,"redirectCount":0,"resourceLoadedEnd":1347.8000001907349,"resourceLoadedStart":393.2000002861023,"resourceTiming":[{"duration":296.2999997138977,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":393.2000002861023,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":393.2000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":689.5,"responseStart":0,"secureConnectionStart":0},{"duration":303.1000003814697,"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":393.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":393.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":696.6000003814697,"responseStart":0,"secureConnectionStart":0},{"duration":506.59999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":393.80000019073486,"connectEnd":393.80000019073486,"connectStart":393.80000019073486,"domainLookupEnd":393.80000019073486,"domainLookupStart":393.80000019073486,"fetchStart":393.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":699.7000002861023,"responseEnd":900.4000000953674,"responseStart":712.9000000953674,"secureConnectionStart":393.80000019073486},{"duration":780.1999998092651,"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":394.80000019073486,"connectEnd":394.80000019073486,"connectStart":394.80000019073486,"domainLookupEnd":394.80000019073486,"domainLookupStart":394.80000019073486,"fetchStart":394.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":700.2000002861023,"responseEnd":1175,"responseStart":714.1000003814697,"secureConnectionStart":394.80000019073486},{"duration":322.40000009536743,"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":395,"connectEnd":395,"connectStart":395,"domainLookupEnd":395,"domainLookupStart":395,"fetchStart":395,"redirectEnd":0,"redirectStart":0,"requestStart":700.6000003814697,"responseEnd":717.4000000953674,"responseStart":715.8000001907349,"secureConnectionStart":395},{"duration":326.19999980926514,"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":395.1000003814697,"connectEnd":395.1000003814697,"connectStart":395.1000003814697,"domainLookupEnd":395.1000003814697,"domainLookupStart":395.1000003814697,"fetchStart":395.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":702,"responseEnd":721.3000001907349,"responseStart":718.5,"secureConnectionStart":395.1000003814697},{"duration":325.5,"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":395.40000009536743,"connectEnd":395.40000009536743,"connectStart":395.40000009536743,"domainLookupEnd":395.40000009536743,"domainLookupStart":395.40000009536743,"fetchStart":395.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":701.8000001907349,"responseEnd":720.9000000953674,"responseStart":717.7000002861023,"secureConnectionStart":395.40000009536743},{"duration":302.5,"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":395.6000003814697,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":395.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":698.1000003814697,"responseStart":0,"secureConnectionStart":0},{"duration":325.80000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":395.80000019073486,"connectEnd":395.80000019073486,"connectStart":395.80000019073486,"domainLookupEnd":395.80000019073486,"domainLookupStart":395.80000019073486,"fetchStart":395.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":702.1000003814697,"responseEnd":721.6000003814697,"responseStart":719,"secureConnectionStart":395.80000019073486},{"duration":303.2000002861023,"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":396,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":396,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":699.2000002861023,"responseStart":0,"secureConnectionStart":0},{"duration":378.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":396.1000003814697,"connectEnd":396.1000003814697,"connectStart":396.1000003814697,"domainLookupEnd":396.1000003814697,"domainLookupStart":396.1000003814697,"fetchStart":396.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":702.3000001907349,"responseEnd":774.6000003814697,"responseStart":719.7000002861023,"secureConnectionStart":396.1000003814697},{"duration":848,"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":396.90000009536743,"connectEnd":396.90000009536743,"connectStart":396.90000009536743,"domainLookupEnd":396.90000009536743,"domainLookupStart":396.90000009536743,"fetchStart":396.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":1091.6000003814697,"responseEnd":1244.9000000953674,"responseStart":1242,"secureConnectionStart":396.90000009536743},{"duration":950.3000001907349,"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":397.5,"connectEnd":397.5,"connectStart":397.5,"domainLookupEnd":397.5,"domainLookupStart":397.5,"fetchStart":397.5,"redirectEnd":0,"redirectStart":0,"requestStart":1336.5,"responseEnd":1347.8000001907349,"responseStart":1347.1000003814697,"secureConnectionStart":397.5},{"duration":273.19999980926514,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1098.7000002861023,"connectEnd":1098.7000002861023,"connectStart":1098.7000002861023,"domainLookupEnd":1098.7000002861023,"domainLookupStart":1098.7000002861023,"fetchStart":1098.7000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":1337.1000003814697,"responseEnd":1371.9000000953674,"responseStart":1371,"secureConnectionStart":1098.7000002861023},{"duration":269.59999990463257,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1421.2000002861023,"connectEnd":1421.2000002861023,"connectStart":1421.2000002861023,"domainLookupEnd":1421.2000002861023,"domainLookupStart":1421.2000002861023,"fetchStart":1421.2000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":1658.3000001907349,"responseEnd":1690.8000001907349,"responseStart":1690.2000002861023,"secureConnectionStart":1421.2000002861023},{"duration":308.59999990463257,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1478.1000003814697,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1478.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1786.7000002861023,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":175,"domainLookupEnd":199,"connectStart":199,"connectEnd":217,"secureConnectionStart":207,"requestStart":218,"responseStart":384,"responseEnd":392,"domLoading":388,"domInteractive":1727,"domContentLoadedEventStart":1727,"domContentLoadedEventEnd":1783,"domComplete":2412,"loadEventStart":2412,"loadEventEnd":2413,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1663.7000002861023},{"name":"bigPipe.sidebar-id.end","time":1664.5},{"name":"bigPipe.activity-panel-pipe-id.start","time":1664.6000003814697},{"name":"bigPipe.activity-panel-pipe-id.end","time":1666.2000002861023},{"name":"activityTabFullyLoaded","time":1798.8000001907349}],"measures":[],"correlationId":"ca1b71c7db5f12","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":105,"dbReadsTimeInMs":12,"dbConnsTimeInMs":20,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
azurit, it looks like it is the same problem as
MDEV-13333, so I suggest to wait forMDEV-13333to be fixed.If the bug will be still reproducible, then it will be investigated further.