The server crashes with:
2023-12-28 17:29:32 89 [Note] WSREP: ::rollback() thread: 89, client_state exec client_mode high priority trans_state aborted killed 0
|
2023-12-28 17:29:32 76 [Note] WSREP: MDL conflict·
|
schema: test
|
request: (75 seqno 626 wsrep (toi, exec, aborted) cmd 3 8 TRUNCATE TABLE t1)
|
granted: (89 seqno -1 wsrep (high priority, exec, aborting) cmd 0 161 (null))
|
2023-12-28 17:29:32 76 [Note] WSREP: MDL ticket: type: MDL_SHARED_WRITE space: TABLE db: test name: t1 (Waiting for table metadata lock)
|
2023-12-28 17:29:32 76 [Note] WSREP: MDL BF-BF conflict
|
schema: test
|
request: (75 seqno 626 wsrep (toi, exec, aborted) cmd 3 8 TRUNCATE TABLE t1)
|
granted: (89 seqno -1 wsrep (high priority, exec, aborted) cmd 0 161 (null))
|
2023-12-28 17:29:32 76 [Note] WSREP: MDL ticket: type: MDL_SHARED_WRITE space: TABLE db: test name: t1 (Waiting for table metadata lock)
|
2023-12-28 17:29:32 76 [ERROR] Aborting
|
The problem is as following:
Applied SR transaction gets BF-aborted, but there is a time window when it's already rolled back and its wsrep transaction's state is set to aborted, but it has not released MDL locks yet. This situation is incorrectly determined during MDL conflict handling and the server aborts thinking there are two high-priority transactions (TOI and high-prio applied) conflicting, which should never happen.
- relates to
-
MDEV-32160
GCF-1060 test failure due to wsrep MDL conflict
-
-
Closed
{"report":{"fcp":2510.399999976158,"ttfb":978.7000000476837,"pageVisibility":"visible","entityId":127092,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":32,"apdex":0.5,"journeyId":"af5e1a92-219d-495a-8abf-fad37eb519e0","navigationType":0,"readyForUser":2748.2999999523163,"redirectCount":0,"resourceLoadedEnd":3317.600000023842,"resourceLoadedStart":983.8999999761581,"resourceTiming":[{"duration":756.3999999761581,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":983.8999999761581,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":983.8999999761581,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1740.2999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":756.6999999284744,"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":984.2000000476837,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":984.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1740.8999999761581,"responseStart":0,"secureConnectionStart":0},{"duration":821.4000000953674,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":984.2999999523163,"connectEnd":984.2999999523163,"connectStart":984.2999999523163,"domainLookupEnd":984.2999999523163,"domainLookupStart":984.2999999523163,"fetchStart":984.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":984.2999999523163,"responseEnd":1805.7000000476837,"responseStart":1805.7000000476837,"secureConnectionStart":984.2999999523163},{"duration":962.7999999523163,"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":984.5,"connectEnd":984.5,"connectStart":984.5,"domainLookupEnd":984.5,"domainLookupStart":984.5,"fetchStart":984.5,"redirectEnd":0,"redirectStart":0,"requestStart":984.5,"responseEnd":1947.2999999523163,"responseStart":1947.2999999523163,"secureConnectionStart":984.5},{"duration":972.8999999761581,"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":984.7000000476837,"connectEnd":984.7000000476837,"connectStart":984.7000000476837,"domainLookupEnd":984.7000000476837,"domainLookupStart":984.7000000476837,"fetchStart":984.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":984.7000000476837,"responseEnd":1957.6000000238419,"responseStart":1957.6000000238419,"secureConnectionStart":984.7000000476837},{"duration":973.6000000238419,"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":984.8999999761581,"connectEnd":984.8999999761581,"connectStart":984.8999999761581,"domainLookupEnd":984.8999999761581,"domainLookupStart":984.8999999761581,"fetchStart":984.8999999761581,"redirectEnd":0,"redirectStart":0,"requestStart":984.8999999761581,"responseEnd":1958.5,"responseStart":1958.5,"secureConnectionStart":984.8999999761581},{"duration":972,"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":987.5,"connectEnd":987.5,"connectStart":987.5,"domainLookupEnd":987.5,"domainLookupStart":987.5,"fetchStart":987.5,"redirectEnd":0,"redirectStart":0,"requestStart":987.5,"responseEnd":1959.5,"responseStart":1959.5,"secureConnectionStart":987.5},{"duration":1097.3000000715256,"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":987.7999999523163,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":987.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":2085.100000023842,"responseStart":0,"secureConnectionStart":0},{"duration":972.2000000476837,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":988,"connectEnd":988,"connectStart":988,"domainLookupEnd":988,"domainLookupStart":988,"fetchStart":988,"redirectEnd":0,"redirectStart":0,"requestStart":988,"responseEnd":1960.2000000476837,"responseStart":1960.2000000476837,"secureConnectionStart":988},{"duration":1097.2999999523163,"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":988.1000000238419,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":988.1000000238419,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":2085.399999976158,"responseStart":0,"secureConnectionStart":0},{"duration":974.0999999046326,"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":988.2000000476837,"connectEnd":988.2000000476837,"connectStart":988.2000000476837,"domainLookupEnd":988.2000000476837,"domainLookupStart":988.2000000476837,"fetchStart":988.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":988.2000000476837,"responseEnd":1962.2999999523163,"responseStart":1962.2999999523163,"secureConnectionStart":988.2000000476837},{"duration":1927.1000000238419,"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":997.1000000238419,"connectEnd":997.1000000238419,"connectStart":997.1000000238419,"domainLookupEnd":997.1000000238419,"domainLookupStart":997.1000000238419,"fetchStart":997.1000000238419,"redirectEnd":0,"redirectStart":0,"requestStart":997.1000000238419,"responseEnd":2924.2000000476837,"responseStart":2924.2000000476837,"secureConnectionStart":997.1000000238419},{"duration":2320.399999976158,"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":997.2000000476837,"connectEnd":997.2000000476837,"connectStart":997.2000000476837,"domainLookupEnd":997.2000000476837,"domainLookupStart":997.2000000476837,"fetchStart":997.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":997.2000000476837,"responseEnd":3317.600000023842,"responseStart":3317.600000023842,"secureConnectionStart":997.2000000476837},{"duration":787.8999999761581,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":2137.5,"connectEnd":2137.5,"connectStart":2137.5,"domainLookupEnd":2137.5,"domainLookupStart":2137.5,"fetchStart":2137.5,"redirectEnd":0,"redirectStart":0,"requestStart":2137.5,"responseEnd":2925.399999976158,"responseStart":2925.399999976158,"secureConnectionStart":2137.5},{"duration":841.6000000238419,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":2503.7999999523163,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":2503.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":3345.399999976158,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":824,"responseStart":979,"responseEnd":987,"domLoading":982,"domInteractive":3400,"domContentLoadedEventStart":3400,"domContentLoadedEventEnd":3530,"domComplete":4312,"loadEventStart":4313,"loadEventEnd":4313,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":3321.600000023842},{"name":"bigPipe.sidebar-id.end","time":3322.399999976158},{"name":"bigPipe.activity-panel-pipe-id.start","time":3322.5},{"name":"bigPipe.activity-panel-pipe-id.end","time":3323.2999999523163},{"name":"activityTabFullyLoaded","time":3572.5}],"measures":[],"correlationId":"6b40477e5dc1be","effectiveType":"4g","downlink":9.2,"rtt":0,"serverDuration":97,"dbReadsTimeInMs":14,"dbConnsTimeInMs":23,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
Fixes have been merged with head revision: https://github.com/MariaDB/server/commit/235f33e3606b79c5e3b75f4cfd1ca6d92320e9a2 and as part of https://github.com/MariaDB/server/commit/d5a669b6b645926360c2a36a99d14501fe8c91fa