Type:
Bug
Priority:
Critical
Resolution:
Incomplete
Affects Version/s:
None
When a tables has a corrupt first page, a backup on said table is largely ignored. The table in question is not backup up at all, there are no errors logged and mariabackup exists without any errors. Using said incremental backup to recover will end up with said table missing. This might be caused by a disk error or something. Innochecksum will detect the issue but not mariabackup. To reproduce:
Get a byte from the first page of the table at some random position and make a note of the value and then write some other value to that position, here we are assuming a table "t1":
$ sudo dd if = /var/lib/mysql/t1 .ibd bs=1 skip=1056 count=1 status=none | od -A n -t x1
ab
$ echo - ne "\xac" | sudo dd of= /var/lib/mysql/test/t1 .ibd bs=1 seek=1056 count=1 conv=notrunc status=none
Now run mariabackup. In the target directory there is no .ibd file for the table t1 in the "test" database. The exit status from mariabackup is 0 and there are no errors in the log. One can see that the table t1 is not copied though, beyond the .frm file.
At first I noticed this only for incremental backups, but the situation is the same for full backups.
{"report":{"fcp":724.5999999046326,"ttfb":147.09999990463257,"pageVisibility":"visible","entityId":106402,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"18d4f1a5-e31c-4164-a816-34f6f392af3e","navigationType":0,"readyForUser":799.5,"redirectCount":0,"resourceLoadedEnd":796.5999999046326,"resourceLoadedStart":152.29999995231628,"resourceTiming":[{"duration":139.10000002384186,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":152.29999995231628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":152.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":291.39999997615814,"responseStart":0,"secureConnectionStart":0},{"duration":139,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/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":152.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":152.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":291.5,"responseStart":0,"secureConnectionStart":0},{"duration":161.89999997615814,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":152.69999992847443,"connectEnd":152.69999992847443,"connectStart":152.69999992847443,"domainLookupEnd":152.69999992847443,"domainLookupStart":152.69999992847443,"fetchStart":152.69999992847443,"redirectEnd":0,"redirectStart":0,"requestStart":152.69999992847443,"responseEnd":314.59999990463257,"responseStart":314.59999990463257,"secureConnectionStart":152.69999992847443},{"duration":253.19999992847443,"initiatorType":"script","name":"https://jira.mariadb.org/s/94c15bff32baef80f4096a08aceae8bc-CDN/lu2bu7/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":152.89999997615814,"connectEnd":152.89999997615814,"connectStart":152.89999997615814,"domainLookupEnd":152.89999997615814,"domainLookupStart":152.89999997615814,"fetchStart":152.89999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":152.89999997615814,"responseEnd":406.09999990463257,"responseStart":406.09999990463257,"secureConnectionStart":152.89999997615814},{"duration":249.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/099b33461394b8015fc36c0a4b96e19f-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/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":152.89999997615814,"connectEnd":152.89999997615814,"connectStart":152.89999997615814,"domainLookupEnd":152.89999997615814,"domainLookupStart":152.89999997615814,"fetchStart":152.89999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":152.89999997615814,"responseEnd":402.39999997615814,"responseStart":402.39999997615814,"secureConnectionStart":152.89999997615814},{"duration":253.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":153,"connectEnd":153,"connectStart":153,"domainLookupEnd":153,"domainLookupStart":153,"fetchStart":153,"redirectEnd":0,"redirectStart":0,"requestStart":153,"responseEnd":406.5,"responseStart":406.5,"secureConnectionStart":153},{"duration":253.70000004768372,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":153.09999990463257,"connectEnd":153.09999990463257,"connectStart":153.09999990463257,"domainLookupEnd":153.09999990463257,"domainLookupStart":153.09999990463257,"fetchStart":153.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":153.09999990463257,"responseEnd":406.7999999523163,"responseStart":406.7999999523163,"secureConnectionStart":153.09999990463257},{"duration":254.10000002384186,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2bu7/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":153.19999992847443,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":153.19999992847443,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":407.2999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":254,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":153.29999995231628,"connectEnd":153.29999995231628,"connectStart":153.29999995231628,"domainLookupEnd":153.29999995231628,"domainLookupStart":153.29999995231628,"fetchStart":153.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":153.29999995231628,"responseEnd":407.2999999523163,"responseStart":407.2999999523163,"secureConnectionStart":153.29999995231628},{"duration":254.19999992847443,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2bu7/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":153.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":153.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":407.6999999284744,"responseStart":0,"secureConnectionStart":0},{"duration":254.20000004768372,"initiatorType":"script","name":"https://jira.mariadb.org/s/3339d87fa2538a859872f2df449bf8d0-CDN/lu2bu7/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":153.59999990463257,"connectEnd":153.59999990463257,"connectStart":153.59999990463257,"domainLookupEnd":153.59999990463257,"domainLookupStart":153.59999990463257,"fetchStart":153.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":153.59999990463257,"responseEnd":407.7999999523163,"responseStart":407.7999999523163,"secureConnectionStart":153.59999990463257},{"duration":487.6999999284744,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":154.39999997615814,"connectEnd":154.39999997615814,"connectStart":154.39999997615814,"domainLookupEnd":154.39999997615814,"domainLookupStart":154.39999997615814,"fetchStart":154.39999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":154.39999997615814,"responseEnd":642.0999999046326,"responseStart":642.0999999046326,"secureConnectionStart":154.39999997615814},{"duration":642.1999999284744,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":154.39999997615814,"connectEnd":154.39999997615814,"connectStart":154.39999997615814,"domainLookupEnd":154.39999997615814,"domainLookupStart":154.39999997615814,"fetchStart":154.39999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":154.39999997615814,"responseEnd":796.5999999046326,"responseStart":796.5,"secureConnectionStart":154.39999997615814},{"duration":199,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":470,"connectEnd":470,"connectStart":470,"domainLookupEnd":470,"domainLookupStart":470,"fetchStart":470,"redirectEnd":0,"redirectStart":0,"requestStart":470,"responseEnd":669,"responseStart":669,"secureConnectionStart":470}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":3,"responseStart":147,"responseEnd":150,"domLoading":150,"domInteractive":884,"domContentLoadedEventStart":884,"domContentLoadedEventEnd":926,"domComplete":1676,"loadEventStart":1676,"loadEventEnd":1677,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":866.1999999284744},{"name":"bigPipe.sidebar-id.end","time":866.8999999761581},{"name":"bigPipe.activity-panel-pipe-id.start","time":867.0999999046326},{"name":"bigPipe.activity-panel-pipe-id.end","time":869.3999999761581},{"name":"activityTabFullyLoaded","time":936.3999999761581}],"measures":[],"correlationId":"d2f6e643cb8c78","effectiveType":"4g","downlink":9.5,"rtt":0,"serverDuration":90,"dbReadsTimeInMs":10,"dbConnsTimeInMs":17,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}