When the InnoDB log sequence number exceeds 4,294,967,295, mariabackup --backup would wrongly detect the first page of the InnoDB system tablespace as corrupted.
The first page is never encrypted. In the first page of the system tablespace, the field that was repurposed for the encryption key_version on other pages would contain the 32 most significant bits of the LSN at the latest InnoDB shutdown. If these bits are not 0, mariabackup --backup would fail with the following kind of output:
181229 22:54:31 [01] Copying ibdata1 to /dev/shm/10.1/mysql-test/var/tmp/backup/ibdata1
|
[01] mariabackup: Database page corruption detected at page 0, retrying...
|
[01] mariabackup: Database page corruption detected at page 0, retrying...
|
[01] mariabackup: Database page corruption detected at page 0, retrying...
|
[01] mariabackup: Database page corruption detected at page 0, retrying...
|
[01] mariabackup: Database page corruption detected at page 0, retrying...
|
[01] mariabackup: Database page corruption detected at page 0, retrying...
|
[01] mariabackup: Database page corruption detected at page 0, retrying...
|
[01] mariabackup: Database page corruption detected at page 0, retrying...
|
181229 22:54:32 >> log scanned up to (17596481013967)
|
[01] mariabackup: Database page corruption detected at page 0, retrying...
|
[01] mariabackup: Error: failed to read page after 10 retries. File ibdata1 seems to be corrupted.
|
[01] mariabackup: Error: xtrabackup_copy_datafile() failed.
|
[01] mariabackup: Error: failed to copy datafile.
|
We must skip this test for the very first page of any file.
- is caused by
-
MDEV-12112
corruption in encrypted table may be overlooked
-
-
Closed
{"report":{"fcp":791.5999994277954,"ttfb":196.29999923706055,"pageVisibility":"visible","entityId":71609,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"d8e7d6a4-01f4-4227-963f-1f13037e71c1","navigationType":0,"readyForUser":868.2999992370605,"redirectCount":0,"resourceLoadedEnd":878.6999998092651,"resourceLoadedStart":201.79999923706055,"resourceTiming":[{"duration":132.70000076293945,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":201.79999923706055,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":201.79999923706055,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":334.5,"responseStart":0,"secureConnectionStart":0},{"duration":132.79999923706055,"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":202,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":202,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":334.79999923706055,"responseStart":0,"secureConnectionStart":0},{"duration":141.5999994277954,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":202.19999980926514,"connectEnd":202.19999980926514,"connectStart":202.19999980926514,"domainLookupEnd":202.19999980926514,"domainLookupStart":202.19999980926514,"fetchStart":202.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":202.19999980926514,"responseEnd":343.79999923706055,"responseStart":343.79999923706055,"secureConnectionStart":202.19999980926514},{"duration":166.80000019073486,"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":202.39999961853027,"connectEnd":202.39999961853027,"connectStart":202.39999961853027,"domainLookupEnd":202.39999961853027,"domainLookupStart":202.39999961853027,"fetchStart":202.39999961853027,"redirectEnd":0,"redirectStart":0,"requestStart":202.39999961853027,"responseEnd":369.19999980926514,"responseStart":369.19999980926514,"secureConnectionStart":202.39999961853027},{"duration":170.39999961853027,"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":202.69999980926514,"connectEnd":202.69999980926514,"connectStart":202.69999980926514,"domainLookupEnd":202.69999980926514,"domainLookupStart":202.69999980926514,"fetchStart":202.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":202.69999980926514,"responseEnd":373.0999994277954,"responseStart":373.0999994277954,"secureConnectionStart":202.69999980926514},{"duration":170.80000019073486,"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":202.79999923706055,"connectEnd":202.79999923706055,"connectStart":202.79999923706055,"domainLookupEnd":202.79999923706055,"domainLookupStart":202.79999923706055,"fetchStart":202.79999923706055,"redirectEnd":0,"redirectStart":0,"requestStart":202.79999923706055,"responseEnd":373.5999994277954,"responseStart":373.5999994277954,"secureConnectionStart":202.79999923706055},{"duration":170.89999961853027,"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":203,"connectEnd":203,"connectStart":203,"domainLookupEnd":203,"domainLookupStart":203,"fetchStart":203,"redirectEnd":0,"redirectStart":0,"requestStart":203,"responseEnd":373.8999996185303,"responseStart":373.8999996185303,"secureConnectionStart":203},{"duration":172.5999994277954,"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":203.19999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":203.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":375.79999923706055,"responseStart":0,"secureConnectionStart":0},{"duration":171,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":203.39999961853027,"connectEnd":203.39999961853027,"connectStart":203.39999961853027,"domainLookupEnd":203.39999961853027,"domainLookupStart":203.39999961853027,"fetchStart":203.39999961853027,"redirectEnd":0,"redirectStart":0,"requestStart":203.39999961853027,"responseEnd":374.3999996185303,"responseStart":374.3999996185303,"secureConnectionStart":203.39999961853027},{"duration":172.39999961853027,"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":203.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":203.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":375.8999996185303,"responseStart":0,"secureConnectionStart":0},{"duration":171.19999980926514,"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":203.69999980926514,"connectEnd":203.69999980926514,"connectStart":203.69999980926514,"domainLookupEnd":203.69999980926514,"domainLookupStart":203.69999980926514,"fetchStart":203.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":203.69999980926514,"responseEnd":374.8999996185303,"responseStart":374.8999996185303,"secureConnectionStart":203.69999980926514},{"duration":178.0999994277954,"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":204.5,"connectEnd":204.5,"connectStart":204.5,"domainLookupEnd":204.5,"domainLookupStart":204.5,"fetchStart":204.5,"redirectEnd":0,"redirectStart":0,"requestStart":204.5,"responseEnd":382.5999994277954,"responseStart":382.5999994277954,"secureConnectionStart":204.5},{"duration":292.9000005722046,"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":204.5999994277954,"connectEnd":204.5999994277954,"connectStart":204.5999994277954,"domainLookupEnd":204.5999994277954,"domainLookupStart":204.5999994277954,"fetchStart":204.5999994277954,"redirectEnd":0,"redirectStart":0,"requestStart":204.5999994277954,"responseEnd":497.5,"responseStart":497.5,"secureConnectionStart":204.5999994277954},{"duration":154,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":576.1999998092651,"connectEnd":576.1999998092651,"connectStart":576.1999998092651,"domainLookupEnd":576.1999998092651,"domainLookupStart":576.1999998092651,"fetchStart":576.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":576.1999998092651,"responseEnd":730.1999998092651,"responseStart":730.1999998092651,"secureConnectionStart":576.1999998092651},{"duration":112.80000019073486,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":785.8999996185303,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":785.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":898.6999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":72.60000038146973,"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":806.0999994277954,"connectEnd":806.0999994277954,"connectStart":806.0999994277954,"domainLookupEnd":806.0999994277954,"domainLookupStart":806.0999994277954,"fetchStart":806.0999994277954,"redirectEnd":0,"redirectStart":0,"requestStart":806.0999994277954,"responseEnd":878.6999998092651,"responseStart":878.6999998092651,"secureConnectionStart":806.0999994277954}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":3,"responseStart":197,"responseEnd":199,"domLoading":200,"domInteractive":919,"domContentLoadedEventStart":919,"domContentLoadedEventEnd":959,"domComplete":1141,"loadEventStart":1141,"loadEventEnd":1143,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":900.3999996185303},{"name":"bigPipe.sidebar-id.end","time":901},{"name":"bigPipe.activity-panel-pipe-id.start","time":901.1999998092651},{"name":"bigPipe.activity-panel-pipe-id.end","time":903.8999996185303},{"name":"activityTabFullyLoaded","time":974.8999996185303}],"measures":[],"correlationId":"6db5e97f96397a","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":119,"dbReadsTimeInMs":11,"dbConnsTimeInMs":20,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}