| 1 |
--source include/have_innodb.inc |
| 2 |
--source include/have_debug_sync.inc |
| 3 |
--source include/have_debug.inc |
| 4 |
--source include/have_sequence.inc |
| 5 |
--source include/no_valgrind_without_big.inc |
| 6 |
|
| 7 |
CREATE TABLE t ENGINE=INNODB SELECT seq%10 i FROM seq_0_to_204796; |
| 8 |
|
| 9 |
--echo # xtrabackup backup |
| 10 |
--let $targetdir=$MYSQLTEST_VARDIR/tmp/backup |
| 11 |
--let $backuplog=$MYSQLTEST_VARDIR/tmp/backup.log |
| 12 |
|
| 13 |
--let before_innodb_log_copy_thread_started=INSERT INTO test.t SELECT * FROM test.t |
| 14 |
|
| 15 |
--disable_result_log |
| 16 |
--error 1 |
| 17 |
--exec $XTRABACKUP --defaults-file=$MYSQLTEST_VARDIR/my.cnf --backup --target-dir=$targetdir --dbug=+d,mariabackup_events > $backuplog |
| 18 |
--enable_result_log |
| 19 |
|
| 20 |
--let SEARCH_PATTERN=Was only able to copy log from \\d+ to \\d+, not \\d+; try increasing innodb_log_file_size\\b |
| 21 |
--let SEARCH_FILE=$backuplog |
| 22 |
--source include/search_pattern_in_file.inc |
| 23 |
--remove_file $backuplog |
| 24 |
--rmdir $targetdir |
| 25 |
|
| 26 |
--let before_innodb_log_copy_thread_started=INSERT INTO test.t SELECT seq FROM seq_0_to_9 |
| 27 |
|
| 28 |
--disable_result_log |
| 29 |
--error 1 |
| 30 |
--exec $XTRABACKUP --defaults-file=$MYSQLTEST_VARDIR/my.cnf --backup --target-dir=$targetdir --dbug=+d,mariabackup_events,log_checksum_mismatch > $backuplog |
| 31 |
--enable_result_log |
| 32 |
|
| 33 |
--let SEARCH_PATTERN=failed: redo log block checksum does not match |
| 34 |
--let SEARCH_FILE=$backuplog |
| 35 |
--source include/search_pattern_in_file.inc |
| 36 |
--remove_file $backuplog |
| 37 |
--rmdir $targetdir |
| 38 |
|
| 39 |
--let before_innodb_log_copy_thread_started= |
| 40 |
|
| 41 |
DROP TABLE t; |