Commit c37b2a9f authored by Andrei's avatar Andrei

MDEV-30460 rpl.rpl_start_alter_restart_slave sometimes fails in BB with result length mismatch

The test was used to fail because of lacking a synchronization point
designating an expected for processing "CA_1" event has been indeed
taken into this phase.
The event apparently may not have even arrived at slave.

Fixed with deploying the missed synchronization.
parent 346a0c14
...@@ -52,6 +52,7 @@ master-bin.000001 # Query 1 # use `test`; create table t3( a int primary key, b ...@@ -52,6 +52,7 @@ master-bin.000001 # Query 1 # use `test`; create table t3( a int primary key, b
# let's stop at first CA processing (in process_commit_alter) # let's stop at first CA processing (in process_commit_alter)
connection slave; connection slave;
include/sync_with_master_gtid.inc include/sync_with_master_gtid.inc
# wait for CA_1 waiting itself
connect extra_slave,127.0.0.1,root,,test,$SLAVE_MYPORT; connect extra_slave,127.0.0.1,root,,test,$SLAVE_MYPORT;
stop slave;; stop slave;;
connection slave; connection slave;
......
...@@ -73,6 +73,10 @@ create table t3( a int primary key, b int) engine=innodb; ...@@ -73,6 +73,10 @@ create table t3( a int primary key, b int) engine=innodb;
--connection slave --connection slave
--source include/sync_with_master_gtid.inc --source include/sync_with_master_gtid.inc
--echo # wait for CA_1 waiting itself
--let $wait_condition = SELECT COUNT(*) = 1 FROM INFORMATION_SCHEMA.PROCESSLIST WHERE STATE = 'debug sync point: now';
--source include/wait_condition.inc
# set debug_sync="now wait_for CA_1_processing"; # set debug_sync="now wait_for CA_1_processing";
connect(extra_slave,127.0.0.1,root,,test,$SLAVE_MYPORT); connect(extra_slave,127.0.0.1,root,,test,$SLAVE_MYPORT);
--send stop slave; --send stop slave;
......
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