mariabackup.mdev-14447 test case is in buildbot recently
(http://buildbot.askmonty.org/buildbot/builders/kvm-zyp-opensuse423-amd64/builds/1084/steps/mtr/logs/stdio)
Root cause is that mariabackup validation of first page fails with checksum mis-match error. (It can be due to partial write or zero filled page).
In xb_load_single_table_tablespace(), mariabackup allows the corrupted page 0
if (err != DB_SUCCESS && err != DB_CORRUPTION && xtrabackup_backup) {
|
/* allow corrupted first page for xtrabackup, it could be just
|
zero-filled page, which we restore from redo log later */
|
die("Failed to not validate first page of the file %s, error %d",name, (int)err);
|
}
|
Test case for it:
call mtr.add_suppression("InnoDB: New log files created");
|
|
let $basedir=$MYSQLTEST_VARDIR/tmp/backup;
|
let $incremental_dir=$MYSQLTEST_VARDIR/tmp/backup_inc1;
|
|
CREATE TABLE t(a varchar(40) PRIMARY KEY, b varchar(40), c varchar(40), d varchar(40), index(b,c,d)) ENGINE INNODB;
|
|
set global innodb_log_checkpoint_now = true;
|
|
let $backuplog=$MYSQLTEST_VARDIR/tmp/backup.log;
|
echo # Create full backup , modify table, then create incremental/differential backup;
|
--disable_result_log
|
|
--echo # dbug execute makes checksum mismatch while reading page 0 of table t.
|
|
exec $XTRABACKUP --defaults-file=$MYSQLTEST_VARDIR/my.cnf --backup --target-dir=$basedir --dbug=+d,page_intermittent_checksum_mismatch >$backuplog;
|
--enable_result_log
|
|
--disable_result_log
|
echo # Prepare full backup, apply incremental one;
|
exec $XTRABACKUP --prepare --verbose --apply-log-only --target-dir=$basedir;
|
|
echo # Restore and check results;
|
let $targetdir=$basedir;
|
-- source include/restart_and_restore.inc
|
|
|
--enable_result_log
|
SELECT count(*) FROM t;
|
DROP TABLE t;
|
|
# Cleanup
|
rmdir $basedir;
|
debug execute if code for validation fails:
|
diff --git a/storage/innobase/buf/buf0buf.cc b/storage/innobase/buf/buf0buf.cc
|
index 8dc2fd2..8f00c83 100644
|
--- a/storage/innobase/buf/buf0buf.cc
|
+++ b/storage/innobase/buf/buf0buf.cc
|
@@ -1103,6 +1103,17 @@ buf_page_is_corrupted(
|
|
if (srv_checksum_algorithm
|
== SRV_CHECKSUM_ALGORITHM_CRC32) {
|
+
|
+ DBUG_EXECUTE_IF(
|
+ "page_intermittent_checksum_mismatch", {
|
+ static int page_counter;
|
+ if (page_counter++ == 4) {
|
+ fprintf(stderr, "mismatch\n");
|
+ checksum_field2++;
|
+ }
|
+ });
|
+
|
+
|
crc32 = buf_page_check_crc32(read_buf,
|
- relates to
-
MDEV-18128
Simplify .ibd file creation
-
-
Closed
{"report":{"fcp":791.7000000476837,"ttfb":156,"pageVisibility":"visible","entityId":72225,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"6cf23015-dc05-4198-9388-9674cc4b1232","navigationType":0,"readyForUser":905.0999999046326,"redirectCount":0,"resourceLoadedEnd":964.7999999523163,"resourceLoadedStart":161.79999995231628,"resourceTiming":[{"duration":213.90000009536743,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":161.79999995231628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":161.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":375.7000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":213.70000004768372,"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":162,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":162,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":375.7000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":228.70000004768372,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":162.09999990463257,"connectEnd":162.09999990463257,"connectStart":162.09999990463257,"domainLookupEnd":162.09999990463257,"domainLookupStart":162.09999990463257,"fetchStart":162.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":162.09999990463257,"responseEnd":390.7999999523163,"responseStart":390.7999999523163,"secureConnectionStart":162.09999990463257},{"duration":317.7000000476837,"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":162.09999990463257,"connectEnd":162.09999990463257,"connectStart":162.09999990463257,"domainLookupEnd":162.09999990463257,"domainLookupStart":162.09999990463257,"fetchStart":162.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":162.09999990463257,"responseEnd":479.7999999523163,"responseStart":479.7999999523163,"secureConnectionStart":162.09999990463257},{"duration":321.2000000476837,"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":162.29999995231628,"connectEnd":162.29999995231628,"connectStart":162.29999995231628,"domainLookupEnd":162.29999995231628,"domainLookupStart":162.29999995231628,"fetchStart":162.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":162.29999995231628,"responseEnd":483.5,"responseStart":483.5,"secureConnectionStart":162.29999995231628},{"duration":321.7000000476837,"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":162.29999995231628,"connectEnd":162.29999995231628,"connectStart":162.29999995231628,"domainLookupEnd":162.29999995231628,"domainLookupStart":162.29999995231628,"fetchStart":162.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":162.29999995231628,"responseEnd":484,"responseStart":484,"secureConnectionStart":162.29999995231628},{"duration":322.2999999523163,"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":162.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":162.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":484.7999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":321.7999999523163,"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":162.5,"connectEnd":162.5,"connectStart":162.5,"domainLookupEnd":162.5,"domainLookupStart":162.5,"fetchStart":162.5,"redirectEnd":0,"redirectStart":0,"requestStart":162.5,"responseEnd":484.2999999523163,"responseStart":484.2999999523163,"secureConnectionStart":162.5},{"duration":322.2000000476837,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":162.59999990463257,"connectEnd":162.59999990463257,"connectStart":162.59999990463257,"domainLookupEnd":162.59999990463257,"domainLookupStart":162.59999990463257,"fetchStart":162.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":162.59999990463257,"responseEnd":484.7999999523163,"responseStart":484.7999999523163,"secureConnectionStart":162.59999990463257},{"duration":322.5,"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":162.70000004768372,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":162.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":485.2000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":322.40000009536743,"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":162.89999985694885,"connectEnd":162.89999985694885,"connectStart":162.89999985694885,"domainLookupEnd":162.89999985694885,"domainLookupStart":162.89999985694885,"fetchStart":162.89999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":162.89999985694885,"responseEnd":485.2999999523163,"responseStart":485.2999999523163,"secureConnectionStart":162.89999985694885},{"duration":409,"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":163.5,"connectEnd":163.5,"connectStart":163.5,"domainLookupEnd":163.5,"domainLookupStart":163.5,"fetchStart":163.5,"redirectEnd":0,"redirectStart":0,"requestStart":163.5,"responseEnd":572.5,"responseStart":572.5,"secureConnectionStart":163.5},{"duration":801.2000000476837,"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":163.59999990463257,"connectEnd":163.59999990463257,"connectStart":163.59999990463257,"domainLookupEnd":163.59999990463257,"domainLookupStart":163.59999990463257,"fetchStart":163.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":163.59999990463257,"responseEnd":964.7999999523163,"responseStart":964.7999999523163,"secureConnectionStart":163.59999990463257},{"duration":28.100000143051147,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":557.5999999046326,"connectEnd":557.5999999046326,"connectStart":557.5999999046326,"domainLookupEnd":557.5999999046326,"domainLookupStart":557.5999999046326,"fetchStart":557.5999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":557.5999999046326,"responseEnd":585.7000000476837,"responseStart":585.7000000476837,"secureConnectionStart":557.5999999046326},{"duration":237.20000004768372,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":783.7999999523163,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":783.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1021,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":34,"responseStart":156,"responseEnd":159,"domLoading":160,"domInteractive":982,"domContentLoadedEventStart":982,"domContentLoadedEventEnd":1018,"domComplete":2060,"loadEventStart":2060,"loadEventEnd":2061,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":966.5},{"name":"bigPipe.sidebar-id.end","time":967.2999999523163},{"name":"bigPipe.activity-panel-pipe-id.start","time":967.5},{"name":"bigPipe.activity-panel-pipe-id.end","time":969.7000000476837},{"name":"activityTabFullyLoaded","time":1023.8999998569489}],"measures":[],"correlationId":"9585add111b906","effectiveType":"4g","downlink":9.1,"rtt":0,"serverDuration":66,"dbReadsTimeInMs":9,"dbConnsTimeInMs":15,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}