List:Commits« Previous MessageNext Message »
From:Luis Soares Date:January 14 2011 5:02pm
Subject:bzr commit into mysql-trunk branch (luis.soares:3507) Bug#57771
View as plain text  
#At file:///home/lsoares/Workspace/bzr/work/reviews/b12133/mysql-trunk-vanilla/ based on revid:sven.sandberg@stripped

 3507 Luis Soares	2011-01-14
      BUG#57771: Master losing track of binary log file after 
      configuration change
      
      Sketch of a test case.

    added:
      mysql-test/suite/rpl/t/rpl_bug57771-master.opt
      mysql-test/suite/rpl/t/rpl_bug57771.test
=== added file 'mysql-test/suite/rpl/t/rpl_bug57771-master.opt'
--- a/mysql-test/suite/rpl/t/rpl_bug57771-master.opt	1970-01-01 00:00:00 +0000
+++ b/mysql-test/suite/rpl/t/rpl_bug57771-master.opt	2011-01-14 17:02:35 +0000
@@ -0,0 +1 @@
+--log-bin=$MYSQLTEST_VARDIR/mysqld.1/data/mysqld-bin

=== added file 'mysql-test/suite/rpl/t/rpl_bug57771.test'
--- a/mysql-test/suite/rpl/t/rpl_bug57771.test	1970-01-01 00:00:00 +0000
+++ b/mysql-test/suite/rpl/t/rpl_bug57771.test	2011-01-14 17:02:35 +0000
@@ -0,0 +1,54 @@
+#
+#
+-- source include/master-slave.inc
+-- source include/have_binlog_format_statement.inc
+
+-- let $datadir= `SELECT @@datadir`
+-- echo $MYSQLTEST_VARDIR
+
+-- cat_file $datadir/mysqld-bin.index
+
+--echo # Shutdown master
+# Write file to make mysql-test-run.pl expect the "crash", but don't start
+# it until it's told to
+--exec echo "wait" > $MYSQLTEST_VARDIR/tmp/mysqld.1.expect
+
+# Send shutdown to the connected server and give
+# it 10 seconds to die before zapping it
+shutdown_server 10; 
+
+--echo # Restart master with log-bin option set to the new path
+--exec echo 'restart: --log-bin=mysqld-bin' > $MYSQLTEST_VARDIR/tmp/mysqld.1.expect
+
+# Turn on reconnect
+--enable_reconnect
+
+# Call script that will poll the server waiting for it to be back online again
+--source include/wait_until_connected_again.inc
+
+# Turn off reconnect again
+--disable_reconnect
+
+-- cat_file $datadir/mysqld-bin.index
+
+CREATE TABLE t1 (a INT);
+DROP TABLE t1;
+
+-- connection slave
+
+STOP SLAVE;
+-- source include/wait_for_slave_to_stop.inc
+START SLAVE;
+
+-- sleep 1
+
+-- let $status_items= Last_IO_Errno, Last_IO_Error
+-- source include/show_slave_status.inc
+
+-- source include/check_slave_no_error.inc
+-- source include/check_slave_is_running.inc
+
+-- connection master
+-- sync_slave_with_master
+
+-- exit


Attachment: [text/bzr-bundle] bzr/luis.soares@oracle.com-20110114170235-vwjv9r5jidqjxfa2.bundle
Thread
bzr commit into mysql-trunk branch (luis.soares:3507) Bug#57771Luis Soares14 Jan