Below is the list of changes that have just been committed into a local
5.0 repository of kgeorge. When kgeorge does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html
ChangeSet@stripped, 2007-08-03 14:14:33+03:00, gkodinov@stripped +1 -0
Bug #25228: rpl_relayspace.test fails on powermacg5, vm-win2003-32-a
A test case was waiting for a fixed number of seconds for a specific
state of the slave IO thread to take place.
Fixed by waiting in a loop for that specific thread state instead
(or timeout).
mysql-test/t/rpl_relayspace.test@stripped, 2007-08-03 14:14:31+03:00, gkodinov@stripped +16 -0
Bug #25228: fixed test case
diff -Nrup a/mysql-test/t/rpl_relayspace.test b/mysql-test/t/rpl_relayspace.test
--- a/mysql-test/t/rpl_relayspace.test 2005-09-15 17:17:20 +03:00
+++ b/mysql-test/t/rpl_relayspace.test 2007-08-03 14:14:31 +03:00
@@ -14,6 +14,22 @@ connection slave;
reset slave;
start slave io_thread;
# Give the I/O thread time to block.
+let $run= 1;
+let $counter= 300;
+while ($run)
+{
+ let $io_state= query_get_value("SHOW SLAVE STATUS", Slave_IO_State, 1);
+ if (`SELECT '$io_state' = 'Waiting for the slave SQL thread to free enough relay log space'`){
+ let $run= 0;
+ }
+ sleep 0.1;
+ if (!$counter){
+ --echo "Failed while waiting for slave IO thread block"
+ SHOW SLAVE STATUS;
+ exit;
+ }
+ dec $counter;
+}
sleep 2;
# A bug caused the I/O thread to refuse stopping.
stop slave io_thread;
| Thread |
|---|
| • bk commit into 5.0 tree (gkodinov:1.2500) BUG#25228 | kgeorge | 3 Aug |