Skip to content

Commit c12f822

Browse files
author
Herman Lee
committed
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 Test Plan: mtr Reviewers: abhinavsharma Reviewed By: abhinavsharma Subscribers: webscalesql-eng@fb.com Differential Revision: https://phabricator.intern.facebook.com/D7300343 Tasks: T26970848 Signature: 7300343:1521170714:f5fa7323427be4c086d96a8688b654bc396a7ffe
1 parent 5941e55 commit c12f822

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

Lines changed: 1 addition & 0 deletions
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

Lines changed: 1 addition & 0 deletions
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)