| 1 |
--source log_pre_8_0_30_case_begin.inc |
| 2 |
|
| 3 |
--echo ############################################################################################ |
| 4 |
--echo # Case 3: Attempt to start with ib_logfile0 which has corrupted file header (checksum). |
| 5 |
--echo # Pre-conditions: logically empty redo files from mysql-$TESTED_DATADIR_VERSION, |
| 6 |
--echo # with corrupted checksum of the ib_logfile0's header |
| 7 |
--echo # 3A: InnoDB refuses to start and emits error about corrupted file header |
| 8 |
--echo # NOTE: Ensure there was no attempt to check if redo is empty. |
| 9 |
--echo ############################################################################################ |
| 10 |
|
| 11 |
--remove_file $SEARCH_FILE |
| 12 |
|
| 13 |
perl; |
| 14 |
open my $fh, '+<:raw', $ENV{IB_LOGFILE0_PATH} or die "open failed: $!\n"; |
| 15 |
seek $fh, 508, 0; |
| 16 |
syswrite($fh, 'luck', 4) == 4 or die "write failed: $!\n"; |
| 17 |
close $fh or die "close failed: $!\n"; |
| 18 |
EOF |
| 19 |
|
| 20 |
--echo # Case 3A: Start MySQL... |
| 21 |
--error 1,42 |
| 22 |
--exec $MYSQLD_CMD $MYSQLD_ARGS --$UNKNOWN_PARAM |
| 23 |
|
| 24 |
--echo # Verify... |
| 25 |
|
| 26 |
let SEARCH_PATTERN = Invalid redo log header checksum; |
| 27 |
# Expected: found |
| 28 |
--source include/search_pattern.inc |
| 29 |
|
| 30 |
let SEARCH_PATTERN = Failed to read header of the redo log file .*ib_logfile0; |
| 31 |
# Expected: found |
| 32 |
--source include/search_pattern.inc |
| 33 |
|
| 34 |
let SEARCH_PATTERN = Upgrading redo log: .*, LSN=; |
| 35 |
# Expected: not found |
| 36 |
--source include/search_pattern.inc |
| 37 |
|
| 38 |
let SEARCH_PATTERN = $PATTERN_UNKNOWN_PARAM; |
| 39 |
# Expected: not found |
| 40 |
--source include/search_pattern.inc |
| 41 |
|
| 42 |
--echo ############################################################################################ |
| 43 |
--source log_pre_8_0_30_case_end.inc |