1include/master-slave.inc 2[connection master] 3connection master; 4call mtr.add_suppression("Timeout waiting for reply of binlog"); 5SET @@GLOBAL.rpl_semi_sync_master_enabled = 1; 6SET @@GLOBAL.rpl_semi_sync_master_timeout=100; 7connection slave; 8include/stop_slave.inc 9SET @@GLOBAL.replicate_events_marked_for_skip=FILTER_ON_MASTER; 10SET @@GLOBAL.rpl_semi_sync_slave_enabled = 1; 11include/start_slave.inc 12connection master; 13CREATE TABLE t1 (a INT) ENGINE=innodb; 14SET @saved_dbug = @@GLOBAL.debug_dbug; 15SET @@GLOBAL.debug_dbug="d,dbug_master_binlog_over_2GB"; 16SET @@SESSION.skip_replication=1; 17INSERT INTO t1 SET a=1; 18SET @@SESSION.skip_replication=0; 19INSERT INTO t1 SET a=0; 20SET @@GLOBAL.debug_dbug=""; 21FLUSH LOGS; 22connection slave; 23connection master; 24SET @@GLOBAL.debug_dbug = @saved_dbug; 25SET @@GLOBAL.rpl_semi_sync_master_timeout = 10000; 26SET @@GLOBAL.rpl_semi_sync_master_enabled = 0; 27connection master; 28DROP TABLE t1; 29connection slave; 30include/stop_slave.inc 31SET @@GLOBAL.rpl_semi_sync_slave_enabled = 0; 32SET @@GLOBAL.replicate_events_marked_for_skip = REPLICATE; 33include/start_slave.inc 34include/rpl_end.inc 35