Type:
Bug
Priority:
Major
Resolution:
Unresolved
Affects Version/s:
10.5
Issue:
Mariadb acquires additional MDL locks on UPDATE/INSERT/DELETE statements on table with foreign keys. For example, table t1 references t2, an UPDATE to t1 will MDL lock t2 in addition to t1.
A replica may deliver an ALTER t1 and UPDATE t2 concurrently for applying. Then the UPDATE may acquire MDL lock for t1, followed by a conflict when the ALTER attempts to MDL lock on t1. Causing a BF-BF conflict.
Solution:
Additional keys for the referenced/foreign table needs to be added to avoid potential MDL conflicts with concurrent update and DDLs.
No workflow transitions have been executed yet.
{"report":{"fcp":843.1999998092651,"ttfb":184.79999923706055,"pageVisibility":"visible","entityId":132893,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"022a45b5-4519-4088-aa5a-6dc09469a27a","navigationType":0,"readyForUser":941.2999992370605,"redirectCount":0,"resourceLoadedEnd":592.8999996185303,"resourceLoadedStart":194.5,"resourceTiming":[{"duration":6.59999942779541,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":194.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":194.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":201.0999994277954,"responseStart":0,"secureConnectionStart":0},{"duration":6.600000381469727,"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":194.79999923706055,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":194.79999923706055,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":201.39999961853027,"responseStart":0,"secureConnectionStart":0},{"duration":258.79999923706055,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":195,"connectEnd":195,"connectStart":195,"domainLookupEnd":195,"domainLookupStart":195,"fetchStart":195,"redirectEnd":0,"redirectStart":0,"requestStart":206.79999923706055,"responseEnd":453.79999923706055,"responseStart":228.0999994277954,"secureConnectionStart":195},{"duration":382.19999980926514,"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":195.19999980926514,"connectEnd":195.19999980926514,"connectStart":195.19999980926514,"domainLookupEnd":195.19999980926514,"domainLookupStart":195.19999980926514,"fetchStart":195.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":206.5,"responseEnd":577.3999996185303,"responseStart":230.19999980926514,"secureConnectionStart":195.19999980926514},{"duration":8,"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":195.39999961853027,"connectEnd":195.39999961853027,"connectStart":195.39999961853027,"domainLookupEnd":195.39999961853027,"domainLookupStart":195.39999961853027,"fetchStart":195.39999961853027,"redirectEnd":0,"redirectStart":0,"requestStart":195.39999961853027,"responseEnd":203.39999961853027,"responseStart":203.39999961853027,"secureConnectionStart":195.39999961853027},{"duration":46.39999961853027,"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":195.5,"connectEnd":195.5,"connectStart":195.5,"domainLookupEnd":195.5,"domainLookupStart":195.5,"fetchStart":195.5,"redirectEnd":0,"redirectStart":0,"requestStart":215.19999980926514,"responseEnd":241.89999961853027,"responseStart":240.5999994277954,"secureConnectionStart":195.5},{"duration":37.59999942779541,"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":195.69999980926514,"connectEnd":195.69999980926514,"connectStart":195.69999980926514,"domainLookupEnd":195.69999980926514,"domainLookupStart":195.69999980926514,"fetchStart":195.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":214.39999961853027,"responseEnd":233.29999923706055,"responseStart":232.29999923706055,"secureConnectionStart":195.69999980926514},{"duration":9.699999809265137,"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":195.89999961853027,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":195.89999961853027,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":205.5999994277954,"responseStart":0,"secureConnectionStart":0},{"duration":40.5,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":196.0999994277954,"connectEnd":196.0999994277954,"connectStart":196.0999994277954,"domainLookupEnd":196.0999994277954,"domainLookupStart":196.0999994277954,"fetchStart":196.0999994277954,"redirectEnd":0,"redirectStart":0,"requestStart":216,"responseEnd":236.5999994277954,"responseStart":235.0999994277954,"secureConnectionStart":196.0999994277954},{"duration":11.40000057220459,"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":196.29999923706055,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":196.29999923706055,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":207.69999980926514,"responseStart":0,"secureConnectionStart":0},{"duration":44.10000038146973,"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":196.29999923706055,"connectEnd":196.29999923706055,"connectStart":196.29999923706055,"domainLookupEnd":196.29999923706055,"domainLookupStart":196.29999923706055,"fetchStart":196.29999923706055,"redirectEnd":0,"redirectStart":0,"requestStart":216.29999923706055,"responseEnd":240.39999961853027,"responseStart":239,"secureConnectionStart":196.29999923706055},{"duration":388.0999994277954,"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":199.19999980926514,"connectEnd":199.19999980926514,"connectStart":199.19999980926514,"domainLookupEnd":199.19999980926514,"domainLookupStart":199.19999980926514,"fetchStart":199.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":266.79999923706055,"responseEnd":587.2999992370605,"responseStart":585.5,"secureConnectionStart":199.19999980926514},{"duration":393.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":199.39999961853027,"connectEnd":199.39999961853027,"connectStart":199.39999961853027,"domainLookupEnd":199.39999961853027,"domainLookupStart":199.39999961853027,"fetchStart":199.39999961853027,"redirectEnd":0,"redirectStart":0,"requestStart":269.19999980926514,"responseEnd":592.8999996185303,"responseStart":587.5999994277954,"secureConnectionStart":199.39999961853027},{"duration":26,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":600.8999996185303,"connectEnd":600.8999996185303,"connectStart":600.8999996185303,"domainLookupEnd":600.8999996185303,"domainLookupStart":600.8999996185303,"fetchStart":600.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":600.8999996185303,"responseEnd":626.8999996185303,"responseStart":626.8999996185303,"secureConnectionStart":600.8999996185303},{"duration":200.80000019073486,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":836.7999992370605,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":836.7999992370605,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1037.5999994277954,"responseStart":0,"secureConnectionStart":0},{"duration":154.9000005722046,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/e65b778d185daf5aee24936755b43da6/_/download/contextbatch/js/browser-metrics-plugin.contrib,-_super,-atl.general/batch.js?agile_global_admin_condition=true&jag=true&slack-enabled=true&whisper-enabled=true","startTime":843.0999994277954,"connectEnd":843.0999994277954,"connectStart":843.0999994277954,"domainLookupEnd":843.0999994277954,"domainLookupStart":843.0999994277954,"fetchStart":843.0999994277954,"redirectEnd":0,"redirectStart":0,"requestStart":843.0999994277954,"responseEnd":998,"responseStart":998,"secureConnectionStart":843.0999994277954}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":26,"responseStart":184,"responseEnd":194,"domLoading":188,"domInteractive":990,"domContentLoadedEventStart":990,"domContentLoadedEventEnd":1030,"domComplete":1189,"loadEventStart":1189,"loadEventEnd":1189,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":974.0999994277954},{"name":"bigPipe.sidebar-id.end","time":974.8999996185303},{"name":"bigPipe.activity-panel-pipe-id.start","time":975},{"name":"bigPipe.activity-panel-pipe-id.end","time":975.5},{"name":"activityTabFullyLoaded","time":1041.5}],"measures":[],"correlationId":"95cef533339d06","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":98,"dbReadsTimeInMs":9,"dbConnsTimeInMs":29,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}