2022-11-11 9:51:34 0 [ERROR] InnoDB: Set innodb_force_recovery=1 to ignore corruption.
2022-11-11 9:51:34 0 [ERROR] InnoDB: Unable to apply log to corrupted page [page id: space=2, page number=74]; set innodb_force_recovery to ignore
2022-11-11 9:51:34 0 [ERROR] InnoDB: Plugin initialization aborted at srv0start.cc[1505] with error Data structure corruption
2022-11-11 9:51:34 0 [ERROR] InnoDB: Failed to read page 74 from file './/undo002': Page read from tablespace is corrupted.
2022-11-11 9:51:34 0 [ERROR] Plugin 'InnoDB' init function returned error.
2022-11-11 9:51:34 0 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
Crash recovery will read an older version of the page. The checkpoint LSN was equal to the commit LSN of mtr.commit_shrink(space) in trx_purge_truncate_history(). So, the error is only on the recovery side.
Recovery invoked recv_sys_t::trim() on page 640, but in fact all pages in the undo log tablespace will be reinitialized, and hence all redo log records for the tablespace before the truncation LSN need to be discarded.
This failure has also occurred on our CI systems a couple of times:
10.10 d371e35257c45895318c4efbed20e5bfdcc7cee9
innodb.undo_truncate_recover '2,4k,innodb,strict_full_crc32' w4 [ fail ] Found warnings/errors in server log file!
2022-06-18 12:14:25 0 [ERROR] InnoDB: Set innodb_force_recovery=1 to ignore corruption.
2022-06-18 12:14:25 0 [ERROR] InnoDB: Plugin initialization aborted at srv0start.cc[1243] with error Data structure corruption
2022-06-18 12:14:25 0 [ERROR] InnoDB: Failed to read page 74 from file './/undo002': Page read from tablespace is corrupted.
2022-06-18 12:14:25 0 [ERROR] Plugin 'InnoDB' init function returned error.
2022-06-18 12:14:25 0 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
^ Found warnings in /buildbot/amd64-ubuntu-2004-msan/build/mysql-test/var/4/log/mysqld.1.err
ok
- saving '/buildbot/amd64-ubuntu-2004-msan/build/mysql-test/var/4/log/innodb.undo_truncate_recover-2,4k,innodb,strict_full_crc32/' to '/buildbot/amd64-ubuntu-2004-msan/build/mysql-test/var/log/innodb.undo_truncate_recover-2,4k,innodb,strict_full_crc32/'
I do not think that this is feasible to fix in 10.3 or 10.4. Recovery as well as the undo log truncation was rewritten in 10.5.
Marko Mäkelä
added a comment - I do not think that this is feasible to fix in 10.3 or 10.4. Recovery as well as the undo log truncation was rewritten in 10.5.
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":1203.5,"ttfb":297.7000000476837,"pageVisibility":"visible","entityId":116687,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"f5b8c60d-abe0-4973-920e-e3e3593fb01c","navigationType":0,"readyForUser":1323.2000000476837,"redirectCount":0,"resourceLoadedEnd":886.5,"resourceLoadedStart":317.7999999523163,"resourceTiming":[{"duration":157.10000014305115,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":317.7999999523163,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":317.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":474.90000009536743,"responseStart":0,"secureConnectionStart":0},{"duration":160.20000004768372,"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":318.09999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":318.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":478.2999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":425.2999999523163,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":318.2999999523163,"connectEnd":318.2999999523163,"connectStart":318.2999999523163,"domainLookupEnd":318.2999999523163,"domainLookupStart":318.2999999523163,"fetchStart":318.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":480.40000009536743,"responseEnd":743.5999999046326,"responseStart":515,"secureConnectionStart":318.2999999523163},{"duration":568,"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":318.5,"connectEnd":318.5,"connectStart":318.5,"domainLookupEnd":318.5,"domainLookupStart":318.5,"fetchStart":318.5,"redirectEnd":0,"redirectStart":0,"requestStart":487,"responseEnd":886.5,"responseStart":518.0999999046326,"secureConnectionStart":318.5},{"duration":243.20000004768372,"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":318.59999990463257,"connectEnd":318.59999990463257,"connectStart":318.59999990463257,"domainLookupEnd":318.59999990463257,"domainLookupStart":318.59999990463257,"fetchStart":318.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":491.2999999523163,"responseEnd":561.7999999523163,"responseStart":555.7999999523163,"secureConnectionStart":318.59999990463257},{"duration":242.5,"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":318.7999999523163,"connectEnd":318.7999999523163,"connectStart":318.7999999523163,"domainLookupEnd":318.7999999523163,"domainLookupStart":318.7999999523163,"fetchStart":318.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":491.2000000476837,"responseEnd":561.2999999523163,"responseStart":543.5,"secureConnectionStart":318.7999999523163},{"duration":243.29999995231628,"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":319,"connectEnd":319,"connectStart":319,"domainLookupEnd":319,"domainLookupStart":319,"fetchStart":319,"redirectEnd":0,"redirectStart":0,"requestStart":491.40000009536743,"responseEnd":562.2999999523163,"responseStart":556.9000000953674,"secureConnectionStart":319},{"duration":168.09999990463257,"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":319.2000000476837,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":319.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":487.2999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":243.40000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":319.2999999523163,"connectEnd":319.2999999523163,"connectStart":319.2999999523163,"domainLookupEnd":319.2999999523163,"domainLookupStart":319.2999999523163,"fetchStart":319.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":491.7999999523163,"responseEnd":562.7000000476837,"responseStart":558.2000000476837,"secureConnectionStart":319.2999999523163},{"duration":170.09999990463257,"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":319.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":319.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":489.59999990463257,"responseStart":0,"secureConnectionStart":0},{"duration":243.70000004768372,"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":319.59999990463257,"connectEnd":319.59999990463257,"connectStart":319.59999990463257,"domainLookupEnd":319.59999990463257,"domainLookupStart":319.59999990463257,"fetchStart":319.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":492,"responseEnd":563.2999999523163,"responseStart":559.5999999046326,"secureConnectionStart":319.59999990463257},{"duration":541.8000001907349,"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":320.59999990463257,"connectEnd":320.59999990463257,"connectStart":320.59999990463257,"domainLookupEnd":320.59999990463257,"domainLookupStart":320.59999990463257,"fetchStart":320.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":640.7000000476837,"responseEnd":862.4000000953674,"responseStart":859.7000000476837,"secureConnectionStart":320.59999990463257},{"duration":551.2999999523163,"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":320.7000000476837,"connectEnd":320.7000000476837,"connectStart":320.7000000476837,"domainLookupEnd":320.7000000476837,"domainLookupStart":320.7000000476837,"fetchStart":320.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":724,"responseEnd":872,"responseStart":866.9000000953674,"secureConnectionStart":320.7000000476837},{"duration":207.10000014305115,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":871.7999999523163,"connectEnd":871.7999999523163,"connectStart":871.7999999523163,"domainLookupEnd":871.7999999523163,"domainLookupStart":871.7999999523163,"fetchStart":871.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":1041.9000000953674,"responseEnd":1078.9000000953674,"responseStart":1078.2999999523163,"secureConnectionStart":871.7999999523163}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":103,"responseStart":298,"responseEnd":303,"domLoading":315,"domInteractive":1414,"domContentLoadedEventStart":1414,"domContentLoadedEventEnd":1479,"domComplete":2588,"loadEventStart":2588,"loadEventEnd":2588,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1392.5},{"name":"bigPipe.sidebar-id.end","time":1393.2999999523163},{"name":"bigPipe.activity-panel-pipe-id.start","time":1393.4000000953674},{"name":"bigPipe.activity-panel-pipe-id.end","time":1394.7000000476837},{"name":"activityTabFullyLoaded","time":1534.7000000476837}],"measures":[],"correlationId":"fd43be5e414929","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":103,"dbReadsTimeInMs":22,"dbConnsTimeInMs":31,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
Test case:
tar xJf utr4k.tar.gz
mariadbd --innodb-page-size=4k --innodb-log-file-size=10m --datadir $(pwd)/data