Skip to content

Commit df1eefb

Browse files
committed
MDEV-16272 rpl.rpl_semisync_ali_issues failed in buildbot, SHOW variable was done instead of waiting for the value of that variable
1 parent 188b328 commit df1eefb

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

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

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,12 @@ echo [ enable semi-sync on slave ];
3131
stop slave;
3232
set global rpl_semi_sync_slave_enabled = 1;
3333
start slave;
34+
let $status_var= rpl_semi_sync_slave_status;
35+
let $status_var_value= ON;
36+
source include/wait_for_status_var.inc;
3437
show status like 'rpl_semi_sync_slave%';
3538

39+
3640
connection master;
3741
CREATE TABLE t1(a INT) ENGINE=InnoDB;
3842
sync_slave_with_master;
@@ -190,6 +194,12 @@ connection con1;
190194
INSERT INTO t1 values (2);
191195
sync_slave_with_master;
192196
connection con1;
197+
let $status_var= Rpl_semi_sync_master_clients;
198+
let $status_var_value= 1;
199+
source include/wait_for_status_var.inc;
200+
let $status_var= Rpl_semi_sync_master_status;
201+
let $status_var_value= ON;
202+
source include/wait_for_status_var.inc;
193203
show status like 'Rpl_semi_sync_master_clients';
194204
show status like 'Rpl_semi_sync_master_status';
195205

@@ -259,7 +269,12 @@ START SLAVE IO_THREAD;
259269
--echo #########################################################
260270
connection con1;
261271
SET GLOBAL rpl_semi_sync_master_enabled = 0;
272+
273+
let $status_var= Rpl_semi_sync_master_clients;
274+
let $status_var_value= 1;
275+
source include/wait_for_status_var.inc;
262276
show status like 'Rpl_semi_sync_master_clients';
277+
263278
INSERT INTO t1 VALUES (1);
264279
SET GLOBAL rpl_semi_sync_master_enabled = 1;
265280
INSERT INTO t1 VALUES (2);

0 commit comments

Comments
 (0)