summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorunknown <aelkin/andrei@mysql1000.dsl.inet.fi>2008-02-08 21:03:10 +0200
committerunknown <aelkin/andrei@mysql1000.dsl.inet.fi>2008-02-08 21:03:10 +0200
commite4e7f8c385439b8aa30d4821127cbc2b9ed5ded7 (patch)
tree92dde9c038b7a088d8f4a506e93c9ede65452dcd
parent7b82376f0a27228705aa0f4e988a7f881aea555c (diff)
downloadmariadb-git-e4e7f8c385439b8aa30d4821127cbc2b9ed5ded7.tar.gz
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.
-rw-r--r--mysql-test/t/rpl_variables.test7
1 files changed, 7 insertions, 0 deletions
diff --git a/mysql-test/t/rpl_variables.test b/mysql-test/t/rpl_variables.test
index d0801e524e4..4e2d07cad54 100644
--- a/mysql-test/t/rpl_variables.test
+++ b/mysql-test/t/rpl_variables.test
@@ -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;
+