| 1 |
# ==== Purpose ==== |
| 2 |
# |
| 3 |
# This test will verify if a slave will skip the transaction boundary parser |
| 4 |
# and the Retrieved_Gtid_Set initialization when relay_log_recovery is set. |
| 5 |
# |
| 6 |
# ==== Related Bugs and Worklogs ==== |
| 7 |
# |
| 8 |
# BUG#21798355 SLOW STARTUP OF 5.7.X SLAVE WITH RELAY_LOG_RECOVERY = ON |
| 9 |
# AND MANY RELAY LOGS |
| 10 |
|
| 11 |
# This test case is binary log format agnostic |
| 12 |
--source include/have_binlog_format_row.inc |
| 13 |
--let $rpl_skip_start_slave=1 |
| 14 |
--source include/master-slave.inc |
| 15 |
# Suppress recovery warning messages |
| 16 |
CALL mtr.add_suppression('Recovery from source pos'); |
| 17 |
CALL mtr.add_suppression("Relay log recovery on channel with GTID_ONLY=1*"); |
| 18 |
|
| 19 |
# Insert some content on the master |
| 20 |
CREATE TABLE t1 (c1 INT); |
| 21 |
INSERT INTO t1 VALUES (1); |
| 22 |
|
| 23 |
# Rotate the binary log to have events on more than one relay log file |
| 24 |
FLUSH LOCAL BINARY LOGS; |
| 25 |
INSERT INTO t1 VALUES (1); |
| 26 |
DROP TABLE t1; |
| 27 |
|
| 28 |
# Start and sync the I/O thread before restarting the slave |
| 29 |
--source include/rpl_connection_slave.inc |
| 30 |
--source include/start_slave_io.inc |
| 31 |
--source include/rpl_connection_master.inc |
| 32 |
--source include/sync_slave_io_with_master.inc |
| 33 |
|
| 34 |
# Restart the slave, relay_log_recovery enabled in the .opt file |
| 35 |
--let $rpl_server_number= 2 |
| 36 |
--let $rpl_server_parameters= |
| 37 |
--source include/rpl_restart_server.inc |
| 38 |
|
| 39 |
# File to GREP |
| 40 |
--let $assert_file=$MYSQLTEST_VARDIR/log/mysqld.2.err |
| 41 |
# Show entries only after the last occurrence of the following pattern |
| 42 |
--let $assert_only_after=.* \[Note\] \[[^]]*\] .* Shutting down replica threads |
| 43 |
# Assert that there is no expected note log line about reading relay log events |
| 44 |
--let $assert_count= 0 |
| 45 |
--let $assert_select=.* \[Note\] \[[^]]*\] .* events read in relaylog file .* |
| 46 |
--let $assert_text= Found no lines about reading events on the relay log. |
| 47 |
--source include/assert_grep.inc |
| 48 |
|
| 49 |
# Cleanup |
| 50 |
--source include/rpl_connection_slave.inc |
| 51 |
--source include/start_slave.inc |
| 52 |
|
| 53 |
--source include/rpl_end.inc |