List:Commits« Previous MessageNext Message »
From:Andrei Elkin Date:December 12 2007 8:12pm
Subject:bk commit into 5.1 tree (aelkin:1.2653) BUG#31552
View as plain text  
Below is the list of changes that have just been committed into a local
5.1 repository of aelkin. When aelkin 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-12-12 20:12:29+01:00, aelkin@stripped +8 -0
  bug#31552 manual merge and post-make-test-run changes.

  mysql-test/extra/rpl_tests/rpl_row_basic.test@stripped, 2007-12-12 20:10:38+01:00,
aelkin@stripped +5 -0
    changes due to the strict mode gets default. This hunk is being added after merging
    with changes from another bug fixes.

  mysql-test/suite/rpl/r/rpl_ignore_table.result@stripped, 2007-12-12 20:10:38+01:00,
aelkin@stripped +2 -0
    results changed

  mysql-test/suite/rpl/r/rpl_row_basic_2myisam.result@stripped, 2007-12-12 20:10:39+01:00,
aelkin@stripped +2 -0
    results changed

  mysql-test/suite/rpl/r/rpl_row_basic_3innodb.result@stripped, 2007-12-12 20:10:39+01:00,
aelkin@stripped +2 -0
    results changed

  mysql-test/suite/rpl/t/rpl_ignore_table.test@stripped, 2007-12-12 20:10:39+01:00,
aelkin@stripped +11 -0
    two queries on mysql db tables are replicated according to binlog_format, ie
    in row-based when that is requested. Due to cancelling the idempotent default
    row based events that previously exectuted successfully now stop the slave sql
    thread.
    We have to explicitly request the idempotent slave execution mode.

  mysql-test/suite/rpl_ndb/r/rpl_ndb_dd_advance.result@stripped, 2007-12-12 20:10:39+01:00,
aelkin@stripped +0 -1
    results changed. They are being committed only now since there was another
    bug which fixes my working clone did not have.

  mysql-test/suite/rpl_ndb/r/rpl_row_basic_7ndb.result@stripped, 2007-12-12 20:10:39+01:00,
aelkin@stripped +3 -1
    results changed

  sql/log_event.cc@stripped, 2007-12-12 20:10:39+01:00, aelkin@stripped +0 -1
    typo in manual merge earlier

diff -Nrup a/mysql-test/extra/rpl_tests/rpl_row_basic.test
b/mysql-test/extra/rpl_tests/rpl_row_basic.test
--- a/mysql-test/extra/rpl_tests/rpl_row_basic.test	2007-12-12 11:19:30 +01:00
+++ b/mysql-test/extra/rpl_tests/rpl_row_basic.test	2007-12-12 20:10:38 +01:00
@@ -248,12 +248,17 @@ connection master;
 INSERT INTO t1 VALUES ('K','K'), ('L','L'), ('M','M');
 --echo **** On Master ****
 sync_slave_with_master;
+# since bug#31552/31609 idempotency is not default any longer. In order
+# the following test DELETE FROM t1 to pass the mode is switched
+# temprorarily
+set @@global.slave_exec_mode= 'IDEMPOTENT';
 DELETE FROM t1 WHERE C1 = 'L';
 
 connection master;
 DELETE FROM t1;
 query_vertical SELECT COUNT(*) FROM t1 ORDER BY c1,c2;
 sync_slave_with_master;
+set @@global.slave_exec_mode= default;
 let $last_error = query_get_value("SHOW SLAVE STATUS", Last_SQL_Errno, 1);
 disable_query_log;
 eval SELECT "$last_error" AS Last_SQL_Error;
diff -Nrup a/mysql-test/suite/rpl/r/rpl_ignore_table.result
b/mysql-test/suite/rpl/r/rpl_ignore_table.result
--- a/mysql-test/suite/rpl/r/rpl_ignore_table.result	2007-06-27 14:27:32 +02:00
+++ b/mysql-test/suite/rpl/r/rpl_ignore_table.result	2007-12-12 20:10:38 +01:00
@@ -115,6 +115,7 @@ GRANT INSERT, INSERT (a), UPDATE (a), RE
 show grants for mysqltest4@localhost;
 Grants for mysqltest4@localhost
 GRANT USAGE ON *.* TO 'mysqltest4'@'localhost' IDENTIFIED BY PASSWORD
'*196BDEDE2AE4F84CA44C47D54D78478C7E2BD7B7'
+set global slave_exec_mode='IDEMPOTENT';
 drop table t1, t4, mysqltest2.t2;
 drop database mysqltest2;
 delete from mysql.user where user like "mysqltest%";
@@ -132,6 +133,7 @@ INSERT INTO t5 (word)  VALUES ('TEST’'
 SELECT HEX(word) FROM t5;
 HEX(word)
 54455354E28099
+set @@global.slave_exec_mode= default;
 SELECT HEX(word) FROM t5;
 HEX(word)
 54455354E28099
diff -Nrup a/mysql-test/suite/rpl/r/rpl_row_basic_2myisam.result
b/mysql-test/suite/rpl/r/rpl_row_basic_2myisam.result
--- a/mysql-test/suite/rpl/r/rpl_row_basic_2myisam.result	2007-12-12 11:19:30 +01:00
+++ b/mysql-test/suite/rpl/r/rpl_row_basic_2myisam.result	2007-12-12 20:10:39 +01:00
@@ -430,10 +430,12 @@ START SLAVE;
 **** On Master ****
 INSERT INTO t1 VALUES ('K','K'), ('L','L'), ('M','M');
 **** On Master ****
+set @@global.slave_exec_mode= 'IDEMPOTENT';
 DELETE FROM t1 WHERE C1 = 'L';
 DELETE FROM t1;
 SELECT COUNT(*) FROM t1 ORDER BY c1,c2;
 COUNT(*)	0
+set @@global.slave_exec_mode= default;
 Last_SQL_Error
 0
 SELECT COUNT(*) FROM t1 ORDER BY c1,c2;
diff -Nrup a/mysql-test/suite/rpl/r/rpl_row_basic_3innodb.result
b/mysql-test/suite/rpl/r/rpl_row_basic_3innodb.result
--- a/mysql-test/suite/rpl/r/rpl_row_basic_3innodb.result	2007-12-12 11:19:30 +01:00
+++ b/mysql-test/suite/rpl/r/rpl_row_basic_3innodb.result	2007-12-12 20:10:39 +01:00
@@ -430,10 +430,12 @@ START SLAVE;
 **** On Master ****
 INSERT INTO t1 VALUES ('K','K'), ('L','L'), ('M','M');
 **** On Master ****
+set @@global.slave_exec_mode= 'IDEMPOTENT';
 DELETE FROM t1 WHERE C1 = 'L';
 DELETE FROM t1;
 SELECT COUNT(*) FROM t1 ORDER BY c1,c2;
 COUNT(*)	0
+set @@global.slave_exec_mode= default;
 Last_SQL_Error
 0
 SELECT COUNT(*) FROM t1 ORDER BY c1,c2;
diff -Nrup a/mysql-test/suite/rpl/t/rpl_ignore_table.test
b/mysql-test/suite/rpl/t/rpl_ignore_table.test
--- a/mysql-test/suite/rpl/t/rpl_ignore_table.test	2007-06-27 14:27:30 +02:00
+++ b/mysql-test/suite/rpl/t/rpl_ignore_table.test	2007-12-12 20:10:39 +01:00
@@ -119,6 +119,13 @@ show grants for mysqltest3@localhost;
 show grants for mysqltest4@localhost;
 
 # Cleanup
+# connection slave;
+# BUG31552 changes idempotency is not default any longer
+# In order the following `delete from mysql.user',
+# where mysqltest1 does not exist on slave,
+# to succeed on slave the mode is temporarily changed
+set global slave_exec_mode='IDEMPOTENT';
+
 connection master;
 drop table t1, t4, mysqltest2.t2;
 drop database mysqltest2;
@@ -129,7 +136,10 @@ delete from mysql.db where user like "my
 # move it to slave instead
 #delete from mysql.tables_priv where user like "mysqltest%";
 delete from mysql.columns_priv where user like "mysqltest%";
+
 sync_slave_with_master;
+# bug#31552: do not restore the mode here but later in order
+# to succeed with yet the following delete from mysql.tables_priv
 
 #BUG27606
 delete from mysql.tables_priv where user like "mysqltest%";
@@ -155,6 +165,7 @@ CREATE TEMPORARY TABLE tmptbl504451f4258
 INSERT INTO t5 (word)  VALUES ('TEST’');
 SELECT HEX(word) FROM t5;
 sync_slave_with_master;
+set @@global.slave_exec_mode= default; # bug#31552 comments above
 connection slave;
 SELECT HEX(word) FROM t5;
 --error 1146
diff -Nrup a/mysql-test/suite/rpl_ndb/r/rpl_ndb_dd_advance.result
b/mysql-test/suite/rpl_ndb/r/rpl_ndb_dd_advance.result
--- a/mysql-test/suite/rpl_ndb/r/rpl_ndb_dd_advance.result	2007-12-12 11:14:51 +01:00
+++ b/mysql-test/suite/rpl_ndb/r/rpl_ndb_dd_advance.result	2007-12-12 20:10:39 +01:00
@@ -301,7 +301,6 @@ SELECT COUNT(*) FROM history;
 COUNT(*)
 400
 *** DUMP MASTER & SLAVE FOR COMPARE ********
-set @@global.slave_exec_mode='IDEMPOTENT' /* to ignore missed records in mysql.proc */;
 *************** TEST 2 CLEANUP SECTION ********************
 DROP PROCEDURE IF EXISTS tpcb.load;
 DROP PROCEDURE IF EXISTS tpcb.trans;
diff -Nrup a/mysql-test/suite/rpl_ndb/r/rpl_row_basic_7ndb.result
b/mysql-test/suite/rpl_ndb/r/rpl_row_basic_7ndb.result
--- a/mysql-test/suite/rpl_ndb/r/rpl_row_basic_7ndb.result	2007-12-12 11:19:30 +01:00
+++ b/mysql-test/suite/rpl_ndb/r/rpl_row_basic_7ndb.result	2007-12-12 20:10:39 +01:00
@@ -378,7 +378,7 @@ C1	C2
 1	2
 2	4
 3	6
-set @@global.slave_exec_mode= 'STRICT';
+set @@global.slave_exec_mode= default;
 --- on slave: old values should be overwritten by replicated values ---
 SELECT * FROM t7 ORDER BY C1;
 C1	C2
@@ -430,10 +430,12 @@ START SLAVE;
 **** On Master ****
 INSERT INTO t1 VALUES ('K','K'), ('L','L'), ('M','M');
 **** On Master ****
+set @@global.slave_exec_mode= 'IDEMPOTENT';
 DELETE FROM t1 WHERE C1 = 'L';
 DELETE FROM t1;
 SELECT COUNT(*) FROM t1 ORDER BY c1,c2;
 COUNT(*)	0
+set @@global.slave_exec_mode= default;
 Last_SQL_Error
 0
 SELECT COUNT(*) FROM t1 ORDER BY c1,c2;
diff -Nrup a/sql/log_event.cc b/sql/log_event.cc
--- a/sql/log_event.cc	2007-12-12 11:21:51 +01:00
+++ b/sql/log_event.cc	2007-12-12 20:10:39 +01:00
@@ -122,7 +122,6 @@ static void inline slave_rows_error_repo
               thd->net.last_error[0] != 0 ? ";" : "",
               handler_error == NULL? "<unknown>" : handler_error,
               log_name, pos);
->>>>>>>
 }
 #endif
 
Thread
bk commit into 5.1 tree (aelkin:1.2653) BUG#31552Andrei Elkin12 Dec