1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

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.
This commit is contained in:
unknown
2008-02-08 21:03:10 +02:00
parent 7b82376f0a
commit e4e7f8c385

View File

@ -1,5 +1,7 @@
source include/master-slave.inc;
connection master;
# Init for rstore of variable values
set @my_slave_net_timeout =@@global.slave_net_timeout;
@ -18,3 +20,8 @@ show variables like 'slave_skip_errors';
# Restore touched values
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;