Last night we encountered a MDL BF-BF conflict on the second node of one of our clusters.
logging for the error:
Feb 18 21:50:08 node02 mariadbd[1071]: 2025-02-18 21:50:08 9 [Note] WSREP: MDL BF-BF conflict
Feb 18 21:50:08 node02 mariadbd[1071]: schema: db
Feb 18 21:50:08 node02 mariadbd[1071]: request: (9 #011seqno 113068570 #011wsrep (high priority, exec, executing) cmd 0 161 #011update `c` set `s` = 'de4def60-4e1a-4c44-b2cc-544a02119308', `c`.`updated_at` = '2025-02-18T20:50:07Z' where `id` = '889d45d4-1617-4d72-83ff-28fc241b156b'^?ò´g#023#001)
Feb 18 21:50:08 node02 mariadbd[1071]: granted: (8 #011seqno 113068568 #011wsrep (toi, exec, committed) cmd 0 45 #011OPTIMIZE TABLE `db`.`c_d_t`)
Feb 18 21:50:08 node02 mariadbd[1071]: 2025-02-18 21:50:08 9 [ERROR] Aborting
after that the node set wsrep_ready to "off"
I've spoken to the developers, the tables in the 2 queries are not related (no triggers or anything affecting the table that is being optimized). From what I've gathered from the developers the OPTIMIZE is part of cronjob for multiple tables and multiple dbs. This cron started at 21:48:02
The OPTIMIZE started at the first node at 21:50:07 and finished in 1.2024 seconds.
unfortunately logging does not show any additional information.
{"report":{"fcp":799.5,"ttfb":203.69999998807907,"pageVisibility":"visible","entityId":132902,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"2661b403-a0ee-45ef-a5f9-9ccc1d34eeea","navigationType":0,"readyForUser":881.6999999880791,"redirectCount":0,"resourceLoadedEnd":882.5,"resourceLoadedStart":209.9000000357628,"resourceTiming":[{"duration":18,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":209.9000000357628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":209.9000000357628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":227.9000000357628,"responseStart":0,"secureConnectionStart":0},{"duration":18.099999964237213,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2bv2/820016/12ta74/2380add21a9a1006587582385952de73/_/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":210.10000002384186,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":210.10000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":228.19999998807907,"responseStart":0,"secureConnectionStart":0},{"duration":74,"initiatorType":"script","name":"https://jira.mariadb.org/s/e9b27a47da5fb0f74a35acd57e9847fb-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":210.30000001192093,"connectEnd":210.30000001192093,"connectStart":210.30000001192093,"domainLookupEnd":210.30000001192093,"domainLookupStart":210.30000001192093,"fetchStart":210.30000001192093,"redirectEnd":0,"redirectStart":0,"requestStart":210.30000001192093,"responseEnd":284.30000001192093,"responseStart":284.30000001192093,"secureConnectionStart":210.30000001192093},{"duration":136.10000002384186,"initiatorType":"script","name":"https://jira.mariadb.org/s/c32eb0da7ad9831253f8397e6cc26afd-CDN/lu2bv2/820016/12ta74/2380add21a9a1006587582385952de73/_/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":210.5,"connectEnd":210.5,"connectStart":210.5,"domainLookupEnd":210.5,"domainLookupStart":210.5,"fetchStart":210.5,"redirectEnd":0,"redirectStart":0,"requestStart":210.5,"responseEnd":346.60000002384186,"responseStart":346.60000002384186,"secureConnectionStart":210.5},{"duration":139.69999998807907,"initiatorType":"script","name":"https://jira.mariadb.org/s/bc0bcb146314416123c992714ee00ff7-CDN/lu2bv2/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":210.80000001192093,"connectEnd":210.80000001192093,"connectStart":210.80000001192093,"domainLookupEnd":210.80000001192093,"domainLookupStart":210.80000001192093,"fetchStart":210.80000001192093,"redirectEnd":0,"redirectStart":0,"requestStart":210.80000001192093,"responseEnd":350.5,"responseStart":350.5,"secureConnectionStart":210.80000001192093},{"duration":140.69999998807907,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":211,"connectEnd":211,"connectStart":211,"domainLookupEnd":211,"domainLookupStart":211,"fetchStart":211,"redirectEnd":0,"redirectStart":0,"requestStart":211,"responseEnd":351.69999998807907,"responseStart":351.69999998807907,"secureConnectionStart":211},{"duration":140.9000000357628,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":211.19999998807907,"connectEnd":211.19999998807907,"connectStart":211.19999998807907,"domainLookupEnd":211.19999998807907,"domainLookupStart":211.19999998807907,"fetchStart":211.19999998807907,"redirectEnd":0,"redirectStart":0,"requestStart":211.19999998807907,"responseEnd":352.10000002384186,"responseStart":352.10000002384186,"secureConnectionStart":211.19999998807907},{"duration":216.69999998807907,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2bv2/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":211.30000001192093,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":211.30000001192093,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":428,"responseStart":0,"secureConnectionStart":0},{"duration":142.10000002384186,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":211.5,"connectEnd":211.5,"connectStart":211.5,"domainLookupEnd":211.5,"domainLookupStart":211.5,"fetchStart":211.5,"redirectEnd":0,"redirectStart":0,"requestStart":211.5,"responseEnd":353.60000002384186,"responseStart":353.60000002384186,"secureConnectionStart":211.5},{"duration":216.5999999642372,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2bv2/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":211.60000002384186,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":211.60000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":428.19999998807907,"responseStart":0,"secureConnectionStart":0},{"duration":142.39999997615814,"initiatorType":"script","name":"https://jira.mariadb.org/s/719848dd97ebe0663199f49a3936487a-CDN/lu2bv2/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":211.80000001192093,"connectEnd":211.80000001192093,"connectStart":211.80000001192093,"domainLookupEnd":211.80000001192093,"domainLookupStart":211.80000001192093,"fetchStart":211.80000001192093,"redirectEnd":0,"redirectStart":0,"requestStart":211.80000001192093,"responseEnd":354.19999998807907,"responseStart":354.19999998807907,"secureConnectionStart":211.80000001192093},{"duration":516.4000000357628,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":213.19999998807907,"connectEnd":213.19999998807907,"connectStart":213.19999998807907,"domainLookupEnd":213.19999998807907,"domainLookupStart":213.19999998807907,"fetchStart":213.19999998807907,"redirectEnd":0,"redirectStart":0,"requestStart":213.19999998807907,"responseEnd":729.6000000238419,"responseStart":729.6000000238419,"secureConnectionStart":213.19999998807907},{"duration":512.6999999880791,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":217.60000002384186,"connectEnd":217.60000002384186,"connectStart":217.60000002384186,"domainLookupEnd":217.60000002384186,"domainLookupStart":217.60000002384186,"fetchStart":217.60000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":217.60000002384186,"responseEnd":730.3000000119209,"responseStart":730.1999999880791,"secureConnectionStart":217.60000002384186},{"duration":174.29999995231628,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":439.9000000357628,"connectEnd":439.9000000357628,"connectStart":439.9000000357628,"domainLookupEnd":439.9000000357628,"domainLookupStart":439.9000000357628,"fetchStart":439.9000000357628,"redirectEnd":0,"redirectStart":0,"requestStart":439.9000000357628,"responseEnd":614.1999999880791,"responseStart":614.1999999880791,"secureConnectionStart":439.9000000357628},{"duration":167.80000001192093,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/e65b778d185daf5aee24936755b43da6/_/download/contextbatch/js/browser-metrics-plugin.contrib,-_super,-project.issue.navigator,-jira.view.issue,-atl.general/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true","startTime":714.6999999880791,"connectEnd":714.6999999880791,"connectStart":714.6999999880791,"domainLookupEnd":714.6999999880791,"domainLookupStart":714.6999999880791,"fetchStart":714.6999999880791,"redirectEnd":0,"redirectStart":0,"requestStart":714.6999999880791,"responseEnd":882.5,"responseStart":882.5,"secureConnectionStart":714.6999999880791},{"duration":130.89999997615814,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":791.6000000238419,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":791.6000000238419,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":922.5,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":27,"responseStart":203,"responseEnd":209,"domLoading":207,"domInteractive":957,"domContentLoadedEventStart":957,"domContentLoadedEventEnd":1013,"domComplete":1234,"loadEventStart":1234,"loadEventEnd":1235,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":927.3000000119209},{"name":"bigPipe.sidebar-id.end","time":928},{"name":"bigPipe.activity-panel-pipe-id.start","time":928.1999999880791},{"name":"bigPipe.activity-panel-pipe-id.end","time":929.8000000119209},{"name":"activityTabFullyLoaded","time":1032.6000000238419}],"measures":[],"correlationId":"7777e422bd13f","effectiveType":"4g","downlink":9.7,"rtt":0,"serverDuration":119,"dbReadsTimeInMs":23,"dbConnsTimeInMs":35,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
2 days ago I've update our clusters from 10.11.9 to 10.11.11, last night we ran into the MDL BF-BF conflict again on 10.11.11
logs from last night:
Mar 4 21:51:31 node02 mariadbd[1063]: 2025-03-04 21:51:31 2 [Note] WSREP: MDL BF-BF conflict
Mar 4 21:51:31 node02 mariadbd[1063]: schema: db
Mar 4 21:51:31 node02 mariadbd[1063]: request: (2 #011seqno 107959336 #011wsrep (high priority, exec, executing) cmd 0 161 #011insert into `c` (`s`, `st`, `cf`, `n`, `d`, `dd`, `bid`, `id`, `updated_at`, `created_at`) values ('p', 'custom', '[{\"id\":\"eaea1c10-a028-40f3-9e44-6cef1fafa02e\",\"name\":\"Projectnr\",\"type\":\"number\",\"priority\":7,\"value\":250220},{\"id\":\"72b62627-f963-47cb-9192-cbc0142805a4\",\"name\":\"Fasenr\",\"type\":\"number\",\"priority\":8,\"value\":38131},{\"id\":\"c7df13c5-bca
Mar 4 21:51:31 node02 mariadbd[1063]: 2025-03-04 21:51:31 2 [ERROR] Aborting