Skip to content

Commit

Permalink
MDEV-7873: rpl.rpl_domain_id_filter fails sporadically in buildbot #2
Browse files Browse the repository at this point in the history
Fix the test case : switch to save_master_gtid.inc &
sync_with_master_gtid.inc to sync slave with master.
  • Loading branch information
Nirbhay Choubey committed Sep 15, 2015
1 parent 6cc1bef commit 31cf362
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions mysql-test/suite/rpl/r/rpl_domain_id_filter.result
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,9 @@ SET @@session.gtid_domain_id=1;
BEGIN;
INSERT INTO t2 VALUES(3);
INSERT INTO t3 VALUES(3);
include/save_master_gtid.inc
# On slave
include/sync_with_master_gtid.inc
include/stop_slave.inc
DO_DOMAIN_IDS (BEFORE) :
IGNORE_DOMAIN_IDS (BEFORE) : 1
Expand All @@ -180,7 +182,9 @@ SET @@session.gtid_domain_id=1;
BEGIN;
INSERT INTO t2 VALUES(5);
INSERT INTO t3 VALUES(5);
include/save_master_gtid.inc
# On slave
include/sync_with_master_gtid.inc
include/stop_slave.inc
DO_DOMAIN_IDS (BEFORE) :
IGNORE_DOMAIN_IDS (BEFORE) :
Expand Down
8 changes: 4 additions & 4 deletions mysql-test/suite/rpl/t/rpl_domain_id_filter.test
Original file line number Diff line number Diff line change
Expand Up @@ -228,11 +228,11 @@ SET @@session.gtid_domain_id=1;
BEGIN;
INSERT INTO t2 VALUES(3);
INSERT INTO t3 VALUES(3);
save_master_pos;
--source include/save_master_gtid.inc

--echo # On slave
connection slave;
sync_with_master;
--source include/sync_with_master_gtid.inc
--source include/stop_slave.inc
let $do_domain_ids_before= query_get_value(SHOW SLAVE STATUS, Replicate_Do_Domain_Ids, 1);
let $ignore_domain_ids_before= query_get_value(SHOW SLAVE STATUS, Replicate_Ignore_Domain_Ids, 1);
Expand Down Expand Up @@ -270,11 +270,11 @@ SET @@session.gtid_domain_id=1;
BEGIN;
INSERT INTO t2 VALUES(5);
INSERT INTO t3 VALUES(5);
save_master_pos;
--source include/save_master_gtid.inc

--echo # On slave
connection slave;
sync_with_master;
--source include/sync_with_master_gtid.inc
--source include/stop_slave.inc
let $do_domain_ids_before= query_get_value(SHOW SLAVE STATUS, Replicate_Do_Domain_Ids, 1);
let $ignore_domain_ids_before= query_get_value(SHOW SLAVE STATUS, Replicate_Ignore_Domain_Ids, 1);
Expand Down

0 comments on commit 31cf362

Please sign in to comment.