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":1572.5999999046326,"ttfb":325.69999980926514,"pageVisibility":"visible","entityId":67156,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"fd37e4aa-3a7f-4b26-af22-84d1c395c1e9","navigationType":0,"readyForUser":1673.6999998092651,"redirectCount":0,"resourceLoadedEnd":1667.1999998092651,"resourceLoadedStart":331.69999980926514,"resourceTiming":[{"duration":336,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":331.69999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":331.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":667.6999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":336,"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":332,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":332,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":668,"responseStart":0,"secureConnectionStart":0},{"duration":628,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":332.19999980926514,"connectEnd":332.19999980926514,"connectStart":332.19999980926514,"domainLookupEnd":332.19999980926514,"domainLookupStart":332.19999980926514,"fetchStart":332.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":332.19999980926514,"responseEnd":960.1999998092651,"responseStart":960.1999998092651,"secureConnectionStart":332.19999980926514},{"duration":740.4000000953674,"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":332.40000009536743,"connectEnd":332.40000009536743,"connectStart":332.40000009536743,"domainLookupEnd":332.40000009536743,"domainLookupStart":332.40000009536743,"fetchStart":332.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":332.40000009536743,"responseEnd":1072.8000001907349,"responseStart":1072.8000001907349,"secureConnectionStart":332.40000009536743},{"duration":744.0999999046326,"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":332.5,"connectEnd":332.5,"connectStart":332.5,"domainLookupEnd":332.5,"domainLookupStart":332.5,"fetchStart":332.5,"redirectEnd":0,"redirectStart":0,"requestStart":332.5,"responseEnd":1076.5999999046326,"responseStart":1076.5999999046326,"secureConnectionStart":332.5},{"duration":744.1999998092651,"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":332.80000019073486,"connectEnd":332.80000019073486,"connectStart":332.80000019073486,"domainLookupEnd":332.80000019073486,"domainLookupStart":332.80000019073486,"fetchStart":332.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":332.80000019073486,"responseEnd":1077,"responseStart":1077,"secureConnectionStart":332.80000019073486},{"duration":744.4000000953674,"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":333,"connectEnd":333,"connectStart":333,"domainLookupEnd":333,"domainLookupStart":333,"fetchStart":333,"redirectEnd":0,"redirectStart":0,"requestStart":333,"responseEnd":1077.4000000953674,"responseStart":1077.4000000953674,"secureConnectionStart":333},{"duration":787.8000001907349,"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":333.19999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":333.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1121,"responseStart":0,"secureConnectionStart":0},{"duration":744.4000000953674,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":333.40000009536743,"connectEnd":333.40000009536743,"connectStart":333.40000009536743,"domainLookupEnd":333.40000009536743,"domainLookupStart":333.40000009536743,"fetchStart":333.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":333.40000009536743,"responseEnd":1077.8000001907349,"responseStart":1077.8000001907349,"secureConnectionStart":333.40000009536743},{"duration":787.6999998092651,"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":333.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":333.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1121.1999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":744.6000003814697,"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":333.69999980926514,"connectEnd":333.69999980926514,"connectStart":333.69999980926514,"domainLookupEnd":333.69999980926514,"domainLookupStart":333.69999980926514,"fetchStart":333.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":333.69999980926514,"responseEnd":1078.3000001907349,"responseStart":1078.3000001907349,"secureConnectionStart":333.69999980926514},{"duration":1004.1999998092651,"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":347.30000019073486,"connectEnd":347.30000019073486,"connectStart":347.30000019073486,"domainLookupEnd":347.30000019073486,"domainLookupStart":347.30000019073486,"fetchStart":347.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":347.30000019073486,"responseEnd":1351.5,"responseStart":1351.5,"secureConnectionStart":347.30000019073486},{"duration":1315.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":351.69999980926514,"connectEnd":351.69999980926514,"connectStart":351.69999980926514,"domainLookupEnd":351.69999980926514,"domainLookupStart":351.69999980926514,"fetchStart":351.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":351.69999980926514,"responseEnd":1667.1999998092651,"responseStart":1667.1999998092651,"secureConnectionStart":351.69999980926514},{"duration":218.5,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1133.6999998092651,"connectEnd":1133.6999998092651,"connectStart":1133.6999998092651,"domainLookupEnd":1133.6999998092651,"domainLookupStart":1133.6999998092651,"fetchStart":1133.6999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":1133.6999998092651,"responseEnd":1352.1999998092651,"responseStart":1352.1999998092651,"secureConnectionStart":1133.6999998092651},{"duration":352,"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&whisper-enabled=true","startTime":1453,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1453,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1805,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":132,"responseStart":326,"responseEnd":352,"domLoading":330,"domInteractive":1748,"domContentLoadedEventStart":1748,"domContentLoadedEventEnd":1805,"domComplete":2797,"loadEventStart":2797,"loadEventEnd":2798,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1730.8000001907349},{"name":"bigPipe.sidebar-id.end","time":1731.5999999046326},{"name":"bigPipe.activity-panel-pipe-id.start","time":1731.8000001907349},{"name":"bigPipe.activity-panel-pipe-id.end","time":1733.8000001907349},{"name":"activityTabFullyLoaded","time":1845.9000000953674}],"measures":[],"correlationId":"b01175f7d1b62d","effectiveType":"4g","downlink":9.2,"rtt":0,"serverDuration":121,"dbReadsTimeInMs":10,"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.