| 1 |
include/rpl_init.inc [topology=1->2,1->3] |
| 2 |
include/rpl_connect.inc [creating master] |
| 3 |
include/rpl_connect.inc [creating slave_1] |
| 4 |
include/rpl_connect.inc [creating slave_2] |
| 5 |
connection slave_1; |
| 6 |
include/stop_slave.inc |
| 7 |
CHANGE MASTER TO MASTER_HEARTBEAT_PERIOD = 0.1; |
| 8 |
include/start_slave.inc |
| 9 |
connection slave_2; |
| 10 |
include/stop_slave.inc |
| 11 |
CHANGE MASTER TO MASTER_HEARTBEAT_PERIOD = 1; |
| 12 |
include/start_slave.inc |
| 13 |
connection slave_1; |
| 14 |
Slave has received heartbeat event |
| 15 |
connection slave_2; |
| 16 |
include/assert.inc [slave_1 should have received more heartbeats than slave_2] |
| 17 |
|
| 18 |
include/rpl_stop_slaves.inc |
| 19 |
include/rpl_change_topology.inc [new topology=1->3->2] |
| 20 |
include/rpl_start_slaves.inc |
| 21 |
connection slave_1; |
| 22 |
include/stop_slave.inc |
| 23 |
CHANGE MASTER TO MASTER_HEARTBEAT_PERIOD=0.1; |
| 24 |
include/start_slave.inc |
| 25 |
slave_1 has received heartbeat event |
| 26 |
connection master; |
| 27 |
CREATE TABLE t1 (a INT PRIMARY KEY, b VARCHAR(10), c LONGTEXT); |
| 28 |
INSERT INTO t1 VALUES (1, 'on master', ''); |
| 29 |
SHOW TABLES; |
| 30 |
Tables_in_test |
| 31 |
t1 |
| 32 |
connection slave_2; |
| 33 |
SHOW TABLES; |
| 34 |
Tables_in_test |
| 35 |
t1 |
| 36 |
connection slave_1; |
| 37 |
SHOW TABLES; |
| 38 |
Tables_in_test |
| 39 |
connection master; |
| 40 |
creating updates on master and send to slave_2 during 5 second |
| 41 |
connection slave_1; |
| 42 |
include/assert.inc [slave_1 should have received heartbeats] |
| 43 |
|
| 44 |
*** Clean up *** |
| 45 |
connection master; |
| 46 |
DROP TABLE t1; |
| 47 |
include/rpl_end.inc |