As part of MDEV-13542, the CHECK TABLE code was refactored so that it would avoid crashes due to corrupted data. mleich produced a core dump where something had caused corruption, and subsequently shutdown crashed:
The broken FIL_PAGE_NEXT link messages were reported by btr_validate_level(), which is executed as part of non-QUICKCHECK TABLE. The crash appears to occur because we forgot to release the index latch after reporting the corruption:
The messages about failing to save persistent statistics seem to be unrelated to this, because that code is not accessing the dict_index_t::lock at all.
When it comes to the cause of the corruption itself, I think that an rr replay trace will be needed.
Attachments
Issue Links
is caused by
MDEV-13542Crashing on a corrupted page is unhelpful
Summary: if a non-quick CHECK TABLE detects a corruption of an InnoDB table, the corrupted table might stay locked until server shutdown.
Sergei Golubchik
added a comment - - edited Summary: if a non-quick CHECK TABLE detects a corruption of an InnoDB table, the corrupted table might stay locked until server shutdown.
People
Marko Mäkelä
Marko Mäkelä
Votes:
1Vote for this issue
Watchers:
3Start watching this issue
Dates
Created:
Updated:
Resolved:
Git Integration
Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.
{"report":{"fcp":905.9000000953674,"ttfb":219.5,"pageVisibility":"visible","entityId":114371,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"f8bfbae4-0fbe-4060-84e1-306409a4fe92","navigationType":0,"readyForUser":994.4000000953674,"redirectCount":0,"resourceLoadedEnd":1663.3000001907349,"resourceLoadedStart":224.5,"resourceTiming":[{"duration":164.2000002861023,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":224.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":224.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":388.7000002861023,"responseStart":0,"secureConnectionStart":0},{"duration":164.19999980926514,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2cib/820016/12ta74/2bf333562ca6724060a9d5f1535471f6/_/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":224.90000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":224.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":389.09999990463257,"responseStart":0,"secureConnectionStart":0},{"duration":192.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":225.09999990463257,"connectEnd":225.09999990463257,"connectStart":225.09999990463257,"domainLookupEnd":225.09999990463257,"domainLookupStart":225.09999990463257,"fetchStart":225.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":225.09999990463257,"responseEnd":417.59999990463257,"responseStart":417.5,"secureConnectionStart":225.09999990463257},{"duration":244.09999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/2d8175ec2fa4c816e8023260bd8c1786-CDN/lu2cib/820016/12ta74/2bf333562ca6724060a9d5f1535471f6/_/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":225.40000009536743,"connectEnd":225.40000009536743,"connectStart":225.40000009536743,"domainLookupEnd":225.40000009536743,"domainLookupStart":225.40000009536743,"fetchStart":225.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":225.40000009536743,"responseEnd":469.5,"responseStart":469.5,"secureConnectionStart":225.40000009536743},{"duration":247.80000019073486,"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":225.5,"connectEnd":225.5,"connectStart":225.5,"domainLookupEnd":225.5,"domainLookupStart":225.5,"fetchStart":225.5,"redirectEnd":0,"redirectStart":0,"requestStart":225.5,"responseEnd":473.30000019073486,"responseStart":473.30000019073486,"secureConnectionStart":225.5},{"duration":248.2000002861023,"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":225.59999990463257,"connectEnd":225.59999990463257,"connectStart":225.59999990463257,"domainLookupEnd":225.59999990463257,"domainLookupStart":225.59999990463257,"fetchStart":225.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":225.59999990463257,"responseEnd":473.80000019073486,"responseStart":473.80000019073486,"secureConnectionStart":225.59999990463257},{"duration":248.19999980926514,"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":225.90000009536743,"connectEnd":225.90000009536743,"connectStart":225.90000009536743,"domainLookupEnd":225.90000009536743,"domainLookupStart":225.90000009536743,"fetchStart":225.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":225.90000009536743,"responseEnd":474.09999990463257,"responseStart":474.09999990463257,"secureConnectionStart":225.90000009536743},{"duration":342.59999990463257,"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":226,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":226,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":568.5999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":248.39999961853027,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":226.2000002861023,"connectEnd":226.2000002861023,"connectStart":226.2000002861023,"domainLookupEnd":226.2000002861023,"domainLookupStart":226.2000002861023,"fetchStart":226.2000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":226.2000002861023,"responseEnd":474.59999990463257,"responseStart":474.59999990463257,"secureConnectionStart":226.2000002861023},{"duration":342.30000019073486,"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":226.40000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":226.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":568.7000002861023,"responseStart":0,"secureConnectionStart":0},{"duration":248.59999990463257,"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":226.5,"connectEnd":226.5,"connectStart":226.5,"domainLookupEnd":226.5,"domainLookupStart":226.5,"fetchStart":226.5,"redirectEnd":0,"redirectStart":0,"requestStart":226.5,"responseEnd":475.09999990463257,"responseStart":475.09999990463257,"secureConnectionStart":226.5},{"duration":645.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":232.40000009536743,"connectEnd":232.40000009536743,"connectStart":232.40000009536743,"domainLookupEnd":232.40000009536743,"domainLookupStart":232.40000009536743,"fetchStart":232.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":232.40000009536743,"responseEnd":877.5999999046326,"responseStart":877.5,"secureConnectionStart":232.40000009536743},{"duration":1427.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":232.40000009536743,"connectEnd":232.40000009536743,"connectStart":232.40000009536743,"domainLookupEnd":232.40000009536743,"domainLookupStart":232.40000009536743,"fetchStart":232.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":232.40000009536743,"responseEnd":1659.9000000953674,"responseStart":1659.9000000953674,"secureConnectionStart":232.40000009536743},{"duration":300.80000019073486,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":582.5,"connectEnd":582.5,"connectStart":582.5,"domainLookupEnd":582.5,"domainLookupStart":582.5,"fetchStart":582.5,"redirectEnd":0,"redirectStart":0,"requestStart":582.5,"responseEnd":883.3000001907349,"responseStart":883.3000001907349,"secureConnectionStart":582.5},{"duration":776.8000001907349,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":898.0999999046326,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":898.0999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1674.9000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":739.2000002861023,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/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":924.0999999046326,"connectEnd":924.0999999046326,"connectStart":924.0999999046326,"domainLookupEnd":924.0999999046326,"domainLookupStart":924.0999999046326,"fetchStart":924.0999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":924.0999999046326,"responseEnd":1663.3000001907349,"responseStart":1663.3000001907349,"secureConnectionStart":924.0999999046326}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":54,"responseStart":220,"responseEnd":228,"domLoading":223,"domInteractive":1680,"domContentLoadedEventStart":1680,"domContentLoadedEventEnd":1721,"domComplete":2098,"loadEventStart":2098,"loadEventEnd":2099,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1664.2000002861023},{"name":"bigPipe.sidebar-id.end","time":1665.0999999046326},{"name":"bigPipe.activity-panel-pipe-id.start","time":1665.3000001907349},{"name":"bigPipe.activity-panel-pipe-id.end","time":1666.2000002861023},{"name":"activityTabFullyLoaded","time":1737.9000000953674}],"measures":[],"correlationId":"1b5a2735d0a9f4","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":102,"dbReadsTimeInMs":14,"dbConnsTimeInMs":21,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
Summary: if a non-quick CHECK TABLE detects a corruption of an InnoDB table, the corrupted table might stay locked until server shutdown.