Commit e4e7f8c3 authored by unknown's avatar unknown

bug#34427 slave misses rendezvous in rpl_variables

There was no instruction in the test that enforces the slave successfully connect
to the master.
The way the test was been written allowed the slave to had been late for rendezvous 
so that about-connecting time queries to the master failed and are error-logged
to had been seen in Warnings of pb.

Fixed with adding a sychronization primitive to the test.
No test case is possible, observe error logs on pb.

Todo: revise need of rpl_report.pl's rules due to failing execution of
queries from get_master_verion_and_clock().
Any test should try to use a synchornization primitive like the current fix
makes and do not let the slave to miss successful connecting.


mysql-test/t/rpl_variables.test:
  Completing the test's body with a synch macro to not let
  the slave to miss the successful connecting to the master.
parent 7b82376f
source include/master-slave.inc; source include/master-slave.inc;
connection master;
# Init for rstore of variable values # Init for rstore of variable values
set @my_slave_net_timeout =@@global.slave_net_timeout; set @my_slave_net_timeout =@@global.slave_net_timeout;
...@@ -18,3 +20,8 @@ show variables like 'slave_skip_errors'; ...@@ -18,3 +20,8 @@ show variables like 'slave_skip_errors';
# Restore touched values # Restore touched values
set global slave_net_timeout =@my_slave_net_timeout; set global slave_net_timeout =@my_slave_net_timeout;
# bug#34427 slave misses rendezvous
# don't let the master be shut down until the slave has connected
sync_slave_with_master;
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