--source include/master-slave.inc

call mtr.add_suppression("Timeout waiting for reply of binlog*");
create table t1 (i int);

set global rpl_semi_sync_master_enabled = ON;

--connection slave
--source include/stop_slave.inc
set global rpl_semi_sync_slave_enabled = ON;
change master to master_log_file='master-bin.000002', master_log_pos = 320, master_use_gtid=no;

start slave;
--let $slave_io_errno=1236
--source include/wait_for_slave_io_error.inc

--connection master
insert into t1 values (1);
--source include/kill_binlog_dump_threads.inc
reset master;

--connection slave
--source include/stop_slave_sql.inc
--let $master_use_gtid_option= No
--source include/reset_slave.inc
--source include/start_slave.inc

set global rpl_semi_sync_slave_enabled = OFF;
--connection master
drop table t1;
--sync_slave_with_master
--connection master
set global rpl_semi_sync_master_enabled = OFF;
--source include/rpl_end.inc
