mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
WL#4641, Bug#43828: fix for rpl_heartbeat_basic.test:
The issue appears when number of heartbeat events non-zero before start of test block. But really we need to check that no new events has received during test block. So I did following: 1. Replace absolute values by diff of values 2. Increase heartbeat period from 1.5 to 5 sec
This commit is contained in:
@ -220,15 +220,10 @@ BEGIN
|
||||
UPDATE test.t1 SET a = a + 1 WHERE a < 10;
|
||||
END|
|
||||
RESET SLAVE;
|
||||
CHANGE MASTER TO MASTER_HOST='127.0.0.1', MASTER_PORT=MASTER_PORT, MASTER_USER='root', MASTER_HEARTBEAT_PERIOD=1.5;
|
||||
CHANGE MASTER TO MASTER_HOST='127.0.0.1', MASTER_PORT=MASTER_PORT, MASTER_USER='root', MASTER_HEARTBEAT_PERIOD=5;
|
||||
include/start_slave.inc
|
||||
SET @@global.event_scheduler=1;
|
||||
SHOW STATUS LIKE 'slave_received_heartbeats';
|
||||
Variable_name Value
|
||||
Slave_received_heartbeats 0
|
||||
SHOW STATUS LIKE 'slave_received_heartbeats';
|
||||
Variable_name Value
|
||||
Slave_received_heartbeats 0
|
||||
Number of received heartbeat events: 0
|
||||
DELETE FROM t1;
|
||||
DROP EVENT e1;
|
||||
|
||||
|
Reference in New Issue
Block a user