Debian Codegraph @

mysql-test/suite/rpl/r/rpl_semi_sync_slave_reply_fail.result

raw
1 include/master-slave.inc
2 [connection master]
3 connection slave;
4 include/stop_slave.inc
5 connection master;
6 call mtr.add_suppression("Timeout waiting for reply of binlog*");
7 call mtr.add_suppression("Master server does not read semi-sync messages*");
8 set global rpl_semi_sync_master_enabled = ON;
9 SET @@GLOBAL.rpl_semi_sync_master_timeout=100;
10 create table t1 (i int);
11 connection slave;
12 set global rpl_semi_sync_slave_enabled = ON;
13 CALL mtr.add_suppression("Semi-sync slave net_flush*");
14 SET @save_debug= @@global.debug_dbug;
15 SET GLOBAL debug_dbug="+d,semislave_failed_net_flush";
16 include/start_slave.inc
17 connection master;
18 connection slave;
19 "Assert that Master server does not read semi-sync messages" is present in slave error log.
20 FOUND 1 /Master server does not read semi-sync messages/ in mysqld.2.err
21 "Assert that Slave IO thread is up and running."
22 SHOW STATUS LIKE 'Slave_running';
23 Variable_name Value
24 Slave_running ON
25 Slave_IO_Running= Yes
26 "Clear the network failure simulation."
27 SET GLOBAL debug_dbug= @save_debug;
28 connection master;
29 insert into t1 values (10);
30 connection slave;
31 connection slave;
32 # Compare the tables on master and slave.
33 include/diff_tables.inc [master:t1, slave:t1]
34 connection master;
35 set statement sql_log_bin=0 for call mtr.add_suppression("Read semi-sync reply magic number error");
36 SET @save_debug_master= @@global.debug_dbug;
37 SET GLOBAL debug_dbug="+d,semisync_corrupt_magic";
38 insert into t1 values (11);
39 connection slave;
40 connection master;
41 SET GLOBAL debug_dbug= @save_debug_master;
42 drop table t1;
43 connection slave;
44 set global rpl_semi_sync_slave_enabled = OFF;
45 connection master;
46 set global rpl_semi_sync_master_enabled = OFF;
47 SET @@GLOBAL.rpl_semi_sync_master_timeout = 10000;
48 include/rpl_end.inc