mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
MDEV-11668 rpl.rpl_heartbeat_basic fails sporadically in buildbot
On a slow builder, a delay between binlog events on master could occur, which would cause a heartbeat which is not expected by the test. The solution is to monitor the timing of binlog events on the master and only perform the heartbeat check if no critical delays have happened. Additionally, an unused variable was removed (this change is unrelated to the bugfix).
This commit is contained in:
@ -7,7 +7,6 @@ RESET SLAVE;
|
||||
SET @restore_slave_net_timeout=@@global.slave_net_timeout;
|
||||
RESET MASTER;
|
||||
SET @restore_slave_net_timeout=@@global.slave_net_timeout;
|
||||
SET @restore_event_scheduler=@@global.event_scheduler;
|
||||
|
||||
*** Default value ***
|
||||
CHANGE MASTER TO MASTER_HOST='127.0.0.1', MASTER_PORT=MASTER_PORT, MASTER_USER='root';
|
||||
@ -223,7 +222,7 @@ RESET SLAVE;
|
||||
CHANGE MASTER TO MASTER_HOST='127.0.0.1', MASTER_PORT=MASTER_PORT, MASTER_USER='root', MASTER_CONNECT_RETRY=20, MASTER_HEARTBEAT_PERIOD=5;
|
||||
include/start_slave.inc
|
||||
SET @@global.event_scheduler=1;
|
||||
Number of received heartbeat events: 0
|
||||
Received heartbeats meet expectations: TRUE
|
||||
DELETE FROM t1;
|
||||
DROP EVENT e1;
|
||||
|
||||
|
Reference in New Issue
Block a user