Commit 31cf362c authored by Nirbhay Choubey's avatar Nirbhay Choubey

MDEV-7873: rpl.rpl_domain_id_filter fails sporadically in buildbot #2

Fix the test case : switch to save_master_gtid.inc &
sync_with_master_gtid.inc to sync slave with master.
parent 6cc1befc
......@@ -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
......@@ -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) :
......
......@@ -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);
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment