| 1 |
--source include/have_debug.inc |
| 2 |
|
| 3 |
CREATE TABLE t(i INT) ENGINE INNODB; |
| 4 |
INSERT INTO t VALUES(1); |
| 5 |
echo # xtrabackup backup; |
| 6 |
let $targetdir=$MYSQLTEST_VARDIR/tmp/backup; |
| 7 |
let $backuplog=$MYSQLTEST_VARDIR/tmp/backup.log; |
| 8 |
|
| 9 |
--disable_result_log |
| 10 |
exec $XTRABACKUP --defaults-file=$MYSQLTEST_VARDIR/my.cnf --backup --parallel=10 --target-dir=$targetdir --dbug=+d,log_intermittent_checksum_mismatch --core-file > $backuplog; |
| 11 |
--enable_result_log |
| 12 |
|
| 13 |
--let SEARCH_RANGE = 10000000 |
| 14 |
--let SEARCH_PATTERN=Invalid log block checksum |
| 15 |
--let SEARCH_FILE=$backuplog |
| 16 |
--source include/search_pattern_in_file.inc |
| 17 |
remove_file $backuplog; |
| 18 |
|
| 19 |
|
| 20 |
INSERT INTO t VALUES(2); |
| 21 |
|
| 22 |
|
| 23 |
echo # xtrabackup prepare; |
| 24 |
--disable_result_log |
| 25 |
exec $XTRABACKUP --prepare --target-dir=$targetdir; |
| 26 |
-- source include/restart_and_restore.inc |
| 27 |
--enable_result_log |
| 28 |
|
| 29 |
SELECT * FROM t; |
| 30 |
DROP TABLE t; |
| 31 |
rmdir $targetdir; |
| 32 |
|