2
# Bug#11747416 : 32228 A disk full makes binary log corrupt.
5
# The test demonstrates reading from binlog error propagation to slave
7
# Conditions for the bug include a crash at time of the last event to
8
# the binlog was written partly. With the fixes the event is not sent out
9
# any longer, but rather the dump thread sends out a sound error message.
11
# Crash is not simulated. A binlog with partly written event in its end is installed
12
# and replication is started from it.
15
--source include/master-slave.inc
16
--source include/have_binlog_format_mixed.inc
18
# Bug#13050593 swallows `\' from Last_IO_Error
19
# todo: uncomment the filter once the bug is fixed.
21
--source include/not_windows.inc
23
call mtr.add_suppression("Error in Log_event::read_log_event()");
26
--let $datadir= `SELECT @@datadir`
28
--let $rpl_server_number= 1
29
--source include/rpl_stop_server.inc
31
--remove_file $datadir/master-bin.000001
32
--copy_file $MYSQL_TEST_DIR/std_data/bug11747416_32228_binlog.000001 $datadir/master-bin.000001
34
--let $rpl_server_number= 1
35
--source include/rpl_start_server.inc
37
--source include/wait_until_connected_again.inc
39
# evidence of the partial binlog
40
--error ER_ERROR_WHEN_EXECUTING_COMMAND
44
call mtr.add_suppression("Slave I/O: Got fatal error 1236 from master when reading data from binary log");
49
# ER_MASTER_FATAL_ERROR_READING_BINLOG 1236
50
--let $slave_param=Last_IO_Errno
51
--let $slave_param_value=1236
52
--source include/wait_for_slave_param.inc
54
--let $status_items= Last_IO_Errno, Last_IO_Error
55
--source include/show_slave_status.inc
67
drop table t; # table was created from binlog. it does not exist on master.
69
--echo End of the tests