We are running a 2 node + arbitrator cluster.
Galera sets WSREP_READY to OFF after MDL BF-BF conflict on second node.
mariadb service does not crash
logs:
Apr 27 03:00:09 node02.mariadb mariadbd[1003]: 2022-04-27 3:00:09 8 [Note] WSREP: MDL BF-BF conflict
|
Apr 27 03:00:09 node02.mariadb mariadbd[1003]: schema: authc
|
Apr 27 03:00:09 node02.mariadb mariadbd[1003]: request: (8 #011seqno 3840795 #011wsrep (high priority, exec, executing) cmd 0 160 #011update `user` set `last_login` = '2022-04-27T01:00:09Z' where `id` = '131b4cd3-e390-4b31-b47d-d1a3d5cee3ee'<99><95>hb#023#001)
|
Apr 27 03:00:09 node02.mariadb mariadbd[1003]: granted: (2 #011seqno 3840793 #011wsrep (toi, exec, committed) cmd 0 45 #011OPTIMIZE TABLE `log_history_daily`)
|
Apr 27 03:00:09 node02.mariadb mariadbd[1003]: 2022-04-27 3:00:09 8 [ERROR] Aborting
|
SHOW CREATE TABLE for the tables mentioned in the logs:
CREATE TABLE `user` (
|
`id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
|
`environment_id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
|
`username` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
|
`password` char(60) COLLATE utf8mb4_unicode_ci NOT NULL,
|
`status` enum('sign_up','invited','active','archived') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'invited',
|
`token` char(64) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
`token_valid_till` datetime DEFAULT NULL,
|
`last_login` datetime DEFAULT NULL,
|
`password_updated_at` datetime DEFAULT NULL,
|
`created_at` timestamp NULL DEFAULT NULL,
|
`updated_at` timestamp NULL DEFAULT NULL,
|
PRIMARY KEY (`id`),
|
UNIQUE KEY `user_username_unique` (`username`),
|
KEY `user_environment_id_index` (`environment_id`)
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
CREATE TABLE `log_history_daily` (
|
`type` enum('unknown','user','developer','api_key','api_env','mail_token','device') COLLATE utf8mb4_unicode_ci NOT NULL,
|
`status` enum('valid','invalid') COLLATE utf8mb4_unicode_ci NOT NULL,
|
`origin` enum('unknown','browser','go','android','ios','third_party') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'unknown',
|
`ip` varchar(45) COLLATE utf8mb4_unicode_ci NOT NULL,
|
`value` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
|
`user_id` char(36) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
`date` date NOT NULL,
|
`count` int(10) unsigned NOT NULL,
|
`created_at` timestamp NULL DEFAULT NULL,
|
`updated_at` timestamp NULL DEFAULT NULL,
|
PRIMARY KEY (`type`,`status`,`origin`,`ip`,`value`,`date`),
|
KEY `log_history_daily_user_id_foreign` (`user_id`),
|
CONSTRAINT `log_history_daily_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`) ON DELETE SET NULL ON UPDATE CASCADE
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
This happened on our test environment (mariadb 10.7.3) and our acceptance environment (mariadb 10.6.7)
{"report":{"fcp":967,"ttfb":237.79999995231628,"pageVisibility":"visible","entityId":110472,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"2b17ca80-0e06-46da-a7ca-2d1d759d5d5d","navigationType":0,"readyForUser":1030.2000000476837,"redirectCount":0,"resourceLoadedEnd":1389.5999999046326,"resourceLoadedStart":243.5,"resourceTiming":[{"duration":304.2000000476837,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bsh/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":243.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":243.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":547.7000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":304,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2bsh/820016/12ta74/eb142f92e4bd16bd1ef8b08c1b9d5d56/_/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":243.89999985694885,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":243.89999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":547.8999998569489,"responseStart":0,"secureConnectionStart":0},{"duration":313.09999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/c54b129276d75dc2a3460e1d78f37913-CDN/lu2bsh/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":244,"connectEnd":244,"connectStart":244,"domainLookupEnd":244,"domainLookupStart":244,"fetchStart":244,"redirectEnd":0,"redirectStart":0,"requestStart":244,"responseEnd":557.0999999046326,"responseStart":557.0999999046326,"secureConnectionStart":244},{"duration":358.60000014305115,"initiatorType":"script","name":"https://jira.mariadb.org/s/f867843cd2fdb209d4d1d4f760f86346-CDN/lu2bsh/820016/12ta74/eb142f92e4bd16bd1ef8b08c1b9d5d56/_/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":244.09999990463257,"connectEnd":244.09999990463257,"connectStart":244.09999990463257,"domainLookupEnd":244.09999990463257,"domainLookupStart":244.09999990463257,"fetchStart":244.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":244.09999990463257,"responseEnd":602.7000000476837,"responseStart":602.7000000476837,"secureConnectionStart":244.09999990463257},{"duration":362.2999999523163,"initiatorType":"script","name":"https://jira.mariadb.org/s/ffdb17665775c5b4d6f097f3974ee359-CDN/lu2bsh/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":244.20000004768372,"connectEnd":244.20000004768372,"connectStart":244.20000004768372,"domainLookupEnd":244.20000004768372,"domainLookupStart":244.20000004768372,"fetchStart":244.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":244.20000004768372,"responseEnd":606.5,"responseStart":606.3999998569489,"secureConnectionStart":244.20000004768372},{"duration":362.7000000476837,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bsh/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":244.29999995231628,"connectEnd":244.29999995231628,"connectStart":244.29999995231628,"domainLookupEnd":244.29999995231628,"domainLookupStart":244.29999995231628,"fetchStart":244.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":244.29999995231628,"responseEnd":607,"responseStart":607,"secureConnectionStart":244.29999995231628},{"duration":363,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bsh/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":244.39999985694885,"connectEnd":244.39999985694885,"connectStart":244.39999985694885,"domainLookupEnd":244.39999985694885,"domainLookupStart":244.39999985694885,"fetchStart":244.39999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":244.39999985694885,"responseEnd":607.3999998569489,"responseStart":607.3999998569489,"secureConnectionStart":244.39999985694885},{"duration":363.59999990463257,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2bsh/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":244.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":244.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":608.0999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":363.19999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":244.70000004768372,"connectEnd":244.70000004768372,"connectStart":244.70000004768372,"domainLookupEnd":244.70000004768372,"domainLookupStart":244.70000004768372,"fetchStart":244.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":244.70000004768372,"responseEnd":607.8999998569489,"responseStart":607.8999998569489,"secureConnectionStart":244.70000004768372},{"duration":363.59999990463257,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2bsh/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":244.79999995231628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":244.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":608.3999998569489,"responseStart":0,"secureConnectionStart":0},{"duration":363.60000014305115,"initiatorType":"script","name":"https://jira.mariadb.org/s/81b5d7c27af3ebc078cc4a36383678ba-CDN/lu2bsh/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":244.89999985694885,"connectEnd":244.89999985694885,"connectStart":244.89999985694885,"domainLookupEnd":244.89999985694885,"domainLookupStart":244.89999985694885,"fetchStart":244.89999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":244.89999985694885,"responseEnd":608.5,"responseStart":608.5,"secureConnectionStart":244.89999985694885},{"duration":909.7000000476837,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bsh/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":250.79999995231628,"connectEnd":250.79999995231628,"connectStart":250.79999995231628,"domainLookupEnd":250.79999995231628,"domainLookupStart":250.79999995231628,"fetchStart":250.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":250.79999995231628,"responseEnd":1160.5,"responseStart":1160.5,"secureConnectionStart":250.79999995231628},{"duration":1138.5999999046326,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bsh/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":251,"connectEnd":251,"connectStart":251,"domainLookupEnd":251,"domainLookupStart":251,"fetchStart":251,"redirectEnd":0,"redirectStart":0,"requestStart":251,"responseEnd":1389.5999999046326,"responseStart":1389.5999999046326,"secureConnectionStart":251},{"duration":576.5999999046326,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":772.7999999523163,"connectEnd":772.7999999523163,"connectStart":772.7999999523163,"domainLookupEnd":772.7999999523163,"domainLookupStart":772.7999999523163,"fetchStart":772.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":772.7999999523163,"responseEnd":1349.3999998569489,"responseStart":1349.3999998569489,"secureConnectionStart":772.7999999523163},{"duration":447.59999990463257,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":946.2000000476837,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":946.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1393.7999999523163,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":71,"responseStart":238,"responseEnd":247,"domLoading":242,"domInteractive":1416,"domContentLoadedEventStart":1416,"domContentLoadedEventEnd":1455,"domComplete":2128,"loadEventStart":2128,"loadEventEnd":2129,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1394},{"name":"bigPipe.sidebar-id.end","time":1394.8999998569489},{"name":"bigPipe.activity-panel-pipe-id.start","time":1395.0999999046326},{"name":"bigPipe.activity-panel-pipe-id.end","time":1397},{"name":"activityTabFullyLoaded","time":1471.2999999523163}],"measures":[],"correlationId":"f77f79d14d11fe","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":94,"dbReadsTimeInMs":15,"dbConnsTimeInMs":22,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
I'm seeing the same thing.
I ran a couple of ALTER TABLE statements which succeeded on the node where I was running them, but they actually got stuck on the other two nodes in the cluster. I only saw this later when I did "SHOW PROCESSLIST;". wsrep_ready had gone to OFF, and the nodes stopped working.
The .err files on the two broken nodes contained messages including: "WSREP: MDL BF-BF conflict" whereas the good node had messages such as:
WSREP: MDL conflict db=name_of_database table=name_of_table ticket=3 solved by abort
Only through a "kill -9" on the mariadbd process and subsequently restarting, which triggered an SST, was I able to get the two broken nodes back to a working state.