MySQL Lists are EOL. Please join:

List:Commits« Previous MessageNext Message »
From:monty Date:April 17 2007 11:41am
Subject:bk commit into 5.1 tree (monty:1.2581)
View as plain text  
Below is the list of changes that have just been committed into a local
5.1 repository of monty. When monty 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-04-17 14:41:16+03:00, monty@stripped +9 -0
  Fixed federated and some replication tests to not stop slave until it's up and running.
  (Removes some warnings about UNIX_TIMESTAMP from the slave.err logs)
  Marked federated_server as a '--big-test'
  Change error in net_clear to 'Note', as it interfered with mysql-test-run.

  client/mysqltest.c@stripped, 2007-04-17 14:41:13+03:00, monty@stripped +4 -3
    More DBUG messages
    Adding missing DBUG_RETURN

  mysql-test/extra/rpl_tests/rpl_max_relay_size.test@stripped, 2007-04-17 14:41:14+03:00, monty@stripped +3 -0
    Added missing sync_slave_with_master

  mysql-test/extra/rpl_tests/rpl_relayrotate.test@stripped, 2007-04-17 14:41:14+03:00, monty@stripped +4 -0
    Added missing sync_slave_with_master

  mysql-test/include/federated.inc@stripped, 2007-04-17 14:41:14+03:00, monty@stripped +5 -0
    Don't do stop slave before the slave has started properly
    (Removes some warnings about UNIX_TIMESTAMP from the slave.err logs)

  mysql-test/include/federated_cleanup.inc@stripped, 2007-04-17 14:41:14+03:00, monty@stripped +0 -2
    Trivial cleanup

  mysql-test/t/federated_server.test@stripped, 2007-04-17 14:41:14+03:00, monty@stripped +3 -2
    Don't run this unless under --big-test
    Made test-loop smaller. (We will find out errors in code over time, as the test is run under a lot of difference machines which will compensate for the smaller loop)

  mysql-test/t/rpl_flushlog_loop.test@stripped, 2007-04-17 14:41:14+03:00, monty@stripped +3 -0
    Added missing sync_slave_with_master

  sql/net_serv.cc@stripped, 2007-04-17 14:41:14+03:00, monty@stripped +1 -1
    Change error to Note (low level warning), as it interfered with mysql-test-run.
    This is probably fine as we in some context on sever shutdown can get information about connection shutdown on the connection while we are doing a query at the same time.
    Still, in normal context one should get this, so it's good to have it in the log as it enables one to find errors easier.

  sql/slave.cc@stripped, 2007-04-17 14:41:14+03:00, monty@stripped +4 -2
    Added reason to why things failed to error message

# This is a BitKeeper patch.  What follows are the unified diffs for the
# set of deltas contained in the patch.  The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User:	monty
# Host:	narttu.mysql.fi
# Root:	/home/my/mysql-5.1

--- 1.109/sql/net_serv.cc	2007-04-13 01:56:19 +03:00
+++ 1.110/sql/net_serv.cc	2007-04-17 14:41:14 +03:00
@@ -299,7 +299,7 @@ void net_clear(NET *net, my_bool clear_b
         DBUG_PRINT("info",("skipped %d bytes from file: %s",
                            count, vio_description(net->vio)));
 #if defined(EXTRA_DEBUG)
-        fprintf(stderr,"Error: net_clear() skipped %d bytes from file: %s\n",
+        fprintf(stderr,"Note: net_clear() skipped %d bytes from file: %s\n",
                 count, vio_description(net->vio));
 #endif
       }

--- 1.302/sql/slave.cc	2007-04-10 16:00:31 +03:00
+++ 1.303/sql/slave.cc	2007-04-17 14:41:14 +03:00
@@ -794,8 +794,10 @@ static int get_master_version_and_clock(
   else
   {
     mi->clock_diff_with_master= 0; /* The "most sensible" value */
-    sql_print_warning("\"SELECT UNIX_TIMESTAMP()\" failed on master, \
-do not trust column Seconds_Behind_Master of SHOW SLAVE STATUS");
+    sql_print_warning("\"SELECT UNIX_TIMESTAMP()\" failed on master, "
+                      "do not trust column Seconds_Behind_Master of SHOW "
+                      "SLAVE STATUS. Error: %s (%d)",
+                      mysql_error(mysql), mysql_errno(mysql));
   }
   if (master_res)
     mysql_free_result(master_res);

--- 1.21/mysql-test/extra/rpl_tests/rpl_max_relay_size.test	2006-11-15 11:26:56 +02:00
+++ 1.22/mysql-test/extra/rpl_tests/rpl_max_relay_size.test	2007-04-17 14:41:14 +03:00
@@ -6,6 +6,9 @@
 # Requires statement logging
 -- source include/master-slave.inc
 
+# We have to sync with master, to ensure slave had time to start properly
+# before we stop it. If not, we get errors about UNIX_TIMESTAMP() in the log.
+sync_slave_with_master;
 connection slave;
 stop slave;
 connection master;

--- 1.1/mysql-test/extra/rpl_tests/rpl_relayrotate.test	2005-12-22 07:34:50 +02:00
+++ 1.2/mysql-test/extra/rpl_tests/rpl_relayrotate.test	2007-04-17 14:41:14 +03:00
@@ -10,6 +10,10 @@
 
 -- source include/master-slave.inc
 
+# We have to sync with master, to ensure slave had time to start properly
+# before we stop it. If not, we get errors about UNIX_TIMESTAMP() in the log.
+connection master;
+sync_slave_with_master;
 connection slave;
 stop slave;
 connection master;

--- 1.16/mysql-test/t/rpl_flushlog_loop.test	2006-03-21 18:40:40 +02:00
+++ 1.17/mysql-test/t/rpl_flushlog_loop.test	2007-04-17 14:41:14 +03:00
@@ -5,6 +5,9 @@
 #
 #  Start replication master -> slave 
 #
+# We have to sync with master, to ensure slave had time to start properly
+# before we stop it. If not, we get errors about UNIX_TIMESTAMP() in the log.
+sync_slave_with_master;
 connection slave;
 --disable_warnings
 stop slave;

--- 1.286/client/mysqltest.c	2007-04-16 17:08:27 +03:00
+++ 1.287/client/mysqltest.c	2007-04-17 14:41:13 +03:00
@@ -2552,6 +2552,7 @@ int do_save_master_pos()
   MYSQL *mysql = &cur_con->mysql;
   const char *query;
   int rpl_parse;
+  DBUG_ENTER("do_save_master_pos");
 
   rpl_parse = mysql_rpl_parse_enabled(mysql);
   mysql_disable_rpl_parse(mysql);
@@ -2709,7 +2710,7 @@ int do_save_master_pos()
   if (rpl_parse)
     mysql_enable_rpl_parse(mysql);
 
-  return 0;
+  DBUG_RETURN(0);
 }
 
 
@@ -3164,7 +3165,7 @@ struct st_connection * find_connection_b
 
 int select_connection_name(const char *name)
 {
-  DBUG_ENTER("select_connection2");
+  DBUG_ENTER("select_connection_name");
   DBUG_PRINT("enter",("name: '%s'", name));
 
   if (!(cur_con= find_connection_by_name(name)))
@@ -3187,7 +3188,7 @@ int select_connection(struct st_command 
   if (*p)
     *p++= 0;
   command->last_argument= p;
-  return select_connection_name(name);
+  DBUG_RETURN(select_connection_name(name));
 }
 
 

--- 1.4/mysql-test/include/federated.inc	2006-12-26 17:56:17 +02:00
+++ 1.5/mysql-test/include/federated.inc	2007-04-17 14:41:14 +03:00
@@ -5,6 +5,11 @@ source ./include/master-slave.inc;
 
 # remote table creation
 
+# We have to sync with master, to ensure slave had time to start properly
+# before we stop it. If not, we get errors about UNIX_TIMESTAMP() in the log.
+connection master;
+sync_slave_with_master;
+
 connection slave;
 #--replicate-ignore-db=federated
 stop slave;

--- 1.1/mysql-test/include/federated_cleanup.inc	2005-07-16 02:42:37 +03:00
+++ 1.2/mysql-test/include/federated_cleanup.inc	2007-04-17 14:41:14 +03:00
@@ -2,10 +2,8 @@ connection master;
 --disable_warnings
 DROP TABLE IF EXISTS federated.t1;
 DROP DATABASE IF EXISTS federated;
---enable_warnings
 
 connection slave;
---disable_warnings
 DROP TABLE IF EXISTS federated.t1;
 DROP DATABASE IF EXISTS federated;
 --enable_warnings

--- 1.8/mysql-test/t/federated_server.test	2007-04-05 00:35:54 +03:00
+++ 1.9/mysql-test/t/federated_server.test	2007-04-17 14:41:14 +03:00
@@ -2,7 +2,8 @@
 # if federated can utilise the servers table
 # should work with embedded server after mysqltest is fixed
 -- source include/not_embedded.inc
-source include/federated.inc;
+-- source include/federated.inc;
+-- source include/big_test.inc
 
 connection slave;
 create database first_db;
@@ -299,7 +300,7 @@ begin
   DECLARE i INT;
   DECLARE CONTINUE HANDLER FOR SQLEXCEPTION SET e = e + 1;
   SET i = sleep(5);
-  WHILE v < 20000 do
+  WHILE v < 10000 do
     CREATE SERVER s
       FOREIGN DATA WRAPPER mysql
       OPTIONS (USER 'Remote', HOST '192.168.1.106', DATABASE 'test');
Thread
bk commit into 5.1 tree (monty:1.2581)monty17 Apr