MySQL Lists are EOL. Please join:

List:Commits« Previous MessageNext Message »
From:Mats Kindahl Date:July 9 2008 1:32pm
Subject:bzr push into mysql-5.1 branch (mats:2622 to 2623)
View as plain text  
 2623 Mats Kindahl	2008-07-09
      Ensuring that master and slave both issue a RESET MASTER and RESET SLAVE
      when resetting replication tests.  If not, circular replication setups
      will leave cruft in the slaves binary log.
modified:
  mysql-test/include/master-slave-reset.inc
  mysql-test/suite/rpl/t/rpl_flushlog_loop.test

 2622 Mats Kindahl	2008-07-08
      Patch to remove extreneous printout.
modified:
  mysql-test/include/wait_for_slave_sql_to_stop.inc

=== modified file 'mysql-test/include/master-slave-reset.inc'
--- a/mysql-test/include/master-slave-reset.inc	2008-04-01 12:40:23 +0000
+++ b/mysql-test/include/master-slave-reset.inc	2008-07-09 12:34:00 +0000
@@ -1,6 +1,13 @@
+# Reset the master and the slave to start fresh.
+#
+# It is necessary to execute RESET MASTER and RESET SLAVE on both
+# master and slave since the replication setup might be circular.
+#
+# Since we expect STOP SLAVE to produce a warning as the slave is
+# stopped (the server was started with skip-slave-start), we disable
+# warnings when doing STOP SLAVE.
+
 connection slave;
-#we expect STOP SLAVE to produce a warning as the slave is stopped
-#(the server was started with skip-slave-start)
 --disable_warnings
 stop slave;
 source include/wait_for_slave_to_stop.inc;
@@ -13,7 +20,13 @@ use test;
 drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
 --enable_warnings
 reset master;
+--disable_query_log
+reset slave;
+--enable_query_log
 connection slave;
+--disable_query_log
+reset master;
+--enable_query_log
 reset slave;
 # Clean up old test tables
 --disable_warnings

=== modified file 'mysql-test/suite/rpl/t/rpl_flushlog_loop.test'
--- a/mysql-test/suite/rpl/t/rpl_flushlog_loop.test	2008-04-03 09:50:43 +0000
+++ b/mysql-test/suite/rpl/t/rpl_flushlog_loop.test	2008-07-09 12:34:00 +0000
@@ -74,3 +74,9 @@ source include/wait_for_slave_param.inc;
 --replace_result $SLAVE_MYPORT SLAVE_PORT $slave_param_value POSITION
 --replace_column 1 # 8 # 9 # 16 # 23 # 33 # 34 # 35 #
 --query_vertical SHOW SLAVE STATUS
+
+--disable_query_log
+connection master;
+DROP TABLE t1;
+sync_slave_with_master;
+--enable_query_log

Thread
bzr push into mysql-5.1 branch (mats:2622 to 2623) Mats Kindahl9 Jul