| 1 |
# |
| 2 |
# MDEV-8345 STOP SLAVE should not cause an ERROR to be logged to the error log |
| 3 |
# |
| 4 |
source include/have_binlog_format_mixed.inc; # don't repeat the test three times |
| 5 |
source include/master-slave.inc; |
| 6 |
|
| 7 |
connection master; |
| 8 |
sync_slave_with_master; |
| 9 |
|
| 10 |
--let $iter=100 |
| 11 |
--echo # MDEV-32892: Repeatedly starting/stopping io_thread.. |
| 12 |
--disable_query_log |
| 13 |
while ($iter) |
| 14 |
{ |
| 15 |
stop slave io_thread; |
| 16 |
start slave io_thread; |
| 17 |
--dec $iter |
| 18 |
} |
| 19 |
--enable_query_log |
| 20 |
source include/stop_slave.inc; |
| 21 |
|
| 22 |
let SEARCH_FILE=$MYSQLTEST_VARDIR/tmp/slave_log.err; |
| 23 |
let SEARCH_PATTERN=Error reading packet from server: Lost connection; |
| 24 |
source include/search_pattern_in_file.inc; |
| 25 |
|
| 26 |
let SEARCH_PATTERN=error code: 2013; |
| 27 |
source include/search_pattern_in_file.inc; |
| 28 |
|
| 29 |
source include/start_slave.inc; |
| 30 |
source include/rpl_end.inc; |
| 31 |
|