mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
MDEV-27963 multisource_for_channel sometimes fails in bb with result content mismatch
The problem was that SHOW SLAVE STATUS was exceuted before the slave IO thread had time to create a new relay log Fixed by writing a command on the master and syncing the slave data. This ensures that the slave creates a new relay log.
This commit is contained in:
@@ -279,6 +279,10 @@ Last_SQL_Errno = '0'
|
||||
#
|
||||
START SLAVE for channel 'master1';
|
||||
include/wait_for_slave_to_start.inc
|
||||
connection master1;
|
||||
create table foo (a int);
|
||||
drop table foo;
|
||||
connection slave;
|
||||
|
||||
show slave status for channel 'master1'
|
||||
Master_Port = 'MYPORT_1'
|
||||
|
||||
@@ -326,6 +326,15 @@ STOP SLAVE for channel 'master1';
|
||||
START SLAVE for channel 'master1';
|
||||
--source include/wait_for_slave_to_start.inc
|
||||
|
||||
# Force some data into the relay log to ensure that we get a new relay log
|
||||
--connection master1
|
||||
create table foo (a int);
|
||||
drop table foo;
|
||||
--save_master_pos
|
||||
--connection slave
|
||||
--sync_with_master 0,'master1'
|
||||
--source include/wait_for_sql_thread_read_all.inc
|
||||
|
||||
--echo
|
||||
--echo show slave status for channel 'master1'
|
||||
--let $status_items= Master_Port, Relay_Log_File, Slave_IO_Running, Slave_SQL_Running, Last_Errno, Last_SQL_Errno
|
||||
|
||||
Reference in New Issue
Block a user