Skip to content

Commit d1ea741

Browse files
Herman Leefacebook-github-bot
Herman Lee
authored andcommitted
Fix test flakiness in rpl.rpl_semi_sync-master_crash_if_active_trxs
Summary: The test would sometimes fail if the slave's retry count is exhausted before the master comes up. Set the slave to retry forever instead. Squash with D5841339 Reviewed By: abhinav04sharma Differential Revision: D7300343 fbshipit-source-id: c12f822
1 parent 6847413 commit d1ea741

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

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

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ call mtr.add_suppression("Force shutdown: Semi-sync master is being switched off
88
create table t1(a int) engine=innodb;
99
include/stop_slave.inc
1010
SET GLOBAL DEBUG='+d,dont_send_semi_sync_reply';
11+
CHANGE MASTER TO MASTER_CONNECT_RETRY=0;
1112
include/start_slave.inc
1213
insert into t1 values(1);
1314
ERROR HY000: Lost connection to MySQL server during query

mysql-test/suite/rpl/t/rpl_semi_sync_master_crash_if_active_trxs.test

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ sync_slave_with_master;
1313
connection slave;
1414
source include/stop_slave.inc;
1515
SET GLOBAL DEBUG='+d,dont_send_semi_sync_reply';
16+
CHANGE MASTER TO MASTER_CONNECT_RETRY=0;
1617
source include/start_slave.inc;
1718

1819
##

0 commit comments

Comments
 (0)