Skip to content

Commit 241f0a1

Browse files
Bug#27757262 MTR TEST RPL_GTID.RPL_MULTI_SOURCE_BLOCK_RECEIVER FAILING TESTCASE
CHECK Ensure that all the servers are synchronized with each other at the end of the test cleanup. Problem: Test RPL_GTID.RPL_MULTI_SOURCE_BLOCK_RECEIVER fails sporadically during test clean-up. Table t2 is found on the second server. Analysis: The test option "rpl_skip_sync" is enabled during cleanup, therefore all the servers must be manually synchronized. This is done for the replication channel 'channel_1' but not for the channel 'channel_2'. The command which drops table t2 from the database is executed on the master before the slave server is started. It can happen that the change is not yet replicated to the slave when the cleanup ends. Solution: Synchronize the slave server of 'channel_2' with the master at the end of the test cleanup. RB: 22274 Reviewed-by: Pedro Gomes <[email protected]> Reviewed-by: Narendra Chauhan <[email protected]>
1 parent 73f64fe commit 241f0a1

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

mysql-test/suite/rpl_gtid/r/rpl_multi_source_block_receiver.result

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ SET DEBUG_SYNC="now SIGNAL continue_updating_received_transaction_set";
3636
[connection server_1]
3737
DROP TABLE t1;
3838
include/sync_slave_sql_with_master.inc [FOR CHANNEL 'channel_1']
39+
include/start_slave.inc [FOR CHANNEL 'channel_3']
3940
[connection server_3]
4041
DROP TABLE t2;
41-
[connection server_2]
42-
include/start_slave.inc [FOR CHANNEL 'channel_3']
42+
include/sync_slave_sql_with_master.inc [FOR CHANNEL 'channel_3']
4343
include/rpl_end.inc
4444
RESET SLAVE ALL FOR CHANNEL 'channel_1';
4545
RESET SLAVE ALL FOR CHANNEL 'channel_3';

mysql-test/suite/rpl_gtid/t/rpl_multi_source_block_receiver.test

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,14 +109,16 @@ DROP TABLE t1;
109109
--let $sync_slave_connection= server_2
110110
--source include/sync_slave_sql_with_master.inc
111111

112+
--let $rpl_channel_name= 'channel_3'
113+
--source include/start_slave.inc
114+
112115
--let $rpl_connection_name= server_3
113116
--source include/rpl_connection.inc
114117
DROP TABLE t2;
115118

116-
--let $rpl_connection_name= server_2
117-
--source include/rpl_connection.inc
118119
--let $rpl_channel_name= 'channel_3'
119-
--source include/start_slave.inc
120+
--let $sync_slave_connection= server_2
121+
--source include/sync_slave_sql_with_master.inc
120122

121123
--let $rpl_skip_sync=1
122124
--source include/rpl_end.inc

0 commit comments

Comments
 (0)