List:Commits« Previous MessageNext Message »
From:Andrei Elkin Date:April 27 2012 7:33pm
Subject:bzr push into mysql-trunk branch (andrei.elkin:3748 to 3749) Bug#12400313
View as plain text  
 3749 Andrei Elkin	2012-04-27
      Bug#12400313
      
      Post-push fixes a PB2 failure refining rpl_stm_relay_ign_space
      to make it passed in MTS.
      See the file comments for rpl_stm_relay_ign_space.test.
     @ mysql-test/suite/rpl/t/rpl_stm_relay_ign_space.test
        The test is streamlined to show that under the blocking condition (LOCK)
        the occupied relay log space is over the limit.
        After the condition is removed (UNLOCK) the occupied space shrinks below
        the limit.
        Notice too, that the wait condition 
          $condition= LIKE 'Waiting for %'
        appears to attract false positive in MTS run because worker state matches
        as well.
     @ sql/rpl_slave.cc
        Simplifying/optimizing rli->sql_force_rotate_relay calculation to not
        require too much obstuctive wait_for_workers_to_finish():
        e.g while the waiting is in progress Show-Slave-Status hangs.
        It's correct and SQL thread won't remove those relay logs whose events
        are in processing by Workers. Permission to remove an old relay log
        is gained after a Worker task is done and accounted in rli->group_master_log_*.

    modified:
      mysql-test/suite/rpl/r/rpl_stm_relay_ign_space.result
      mysql-test/suite/rpl/t/rpl_stm_relay_ign_space.test
      sql/rpl_slave.cc
 3748 Alexander Nozdrin	2012-04-27
      Yet another follow-up for Bug#12762885 - 61713: MYSQL WILL NOT BIND
      TO "LOCALHOST" IF LOCALHOST IS BOTH IPV4/IPV6 ENABLED.
      
      Update test result file.

    modified:
      mysql-test/suite/sys_vars/r/bind_address_basic.result
      mysql-test/suite/sys_vars/t/bind_address_basic.test
=== modified file 'mysql-test/suite/rpl/r/rpl_stm_relay_ign_space.result'
--- a/mysql-test/suite/rpl/r/rpl_stm_relay_ign_space.result	2012-03-23 20:11:19 +0000
+++ b/mysql-test/suite/rpl/r/rpl_stm_relay_ign_space.result	2012-04-27 18:40:38 +0000
@@ -3,6 +3,24 @@ Warnings:
 Note	####	Sending passwords in plain text without SSL/TLS is extremely insecure.
 Note	####	Storing MySQL user name or password information in the master.info repository is not secure and is therefore not recommended. Please see the MySQL Manual for more about this issue and possible alternatives.
 [connection master]
-include/assert.inc [Assert that relay log space is close to the limit]
+CREATE TABLE t1 (c1 TEXT) engine=InnoDB;
+INSERT INTO t1 VALUES ('xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx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xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx!
 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx');
+UNLOCK TABLES;
+FLUSH LOGS;
 include/diff_tables.inc [master:test.t1,slave:test.t1]
+DROP TABLE t1;
 include/rpl_end.inc

=== modified file 'mysql-test/suite/rpl/t/rpl_stm_relay_ign_space.test'
--- a/mysql-test/suite/rpl/t/rpl_stm_relay_ign_space.test	2012-03-16 10:29:55 +0000
+++ b/mysql-test/suite/rpl/t/rpl_stm_relay_ign_space.test	2012-04-27 18:40:38 +0000
@@ -14,15 +14,16 @@
 #
 # The purpose is to show that the IO thread will honor the limits
 # while the SQL thread is not able to purge the relay logs, which did
-# not happen before this patch. In addition we assert that while
-# ignoring the limit (SQL thread needs to rotate before purging), the
-# IO thread does not do it in an uncontrolled manner.
+# not happen before this patch. 
+# It is proved that when the blocking
+# condition are removed the occupied relay log space shrinks back to
+# below the limit.
+
 
 --source include/have_binlog_format_statement.inc
 --source include/master-slave.inc
 --source include/have_innodb.inc
 
---disable_query_log
 CREATE TABLE t1 (c1 TEXT) engine=InnoDB;
 
 INSERT INTO t1 VALUES ('xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx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xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx!
 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx');
 
---connection slave
+--let $space_total= query_get_value(SHOW MASTER STATUS, Position, 1)
 
-# ASSERT that the IO thread waits for the SQL thread to release some 
-# space before continuing
---let $show_statement= SHOW PROCESSLIST
---let $field= State
---let $condition= LIKE 'Waiting for %'
-# before the patch (IO would have transfered everything)
-#--let $condition= = 'Waiting for master to send event'
-# after the patch (now it waits for space to be freed)
-#--let $condition= = 'Waiting for the slave SQL thread to free enough relay log space'
---source include/wait_show_condition.inc
+--connection slave
 
-# without the patch we can uncomment the following two lines and
-# watch the IO thread synchronize with the master, thus writing 
-# relay logs way over the space limit
-#--connection master
-#--source include/sync_slave_io_with_master.inc
-
-## ASSERT that the IO thread has honored the limit+few bytes required to be able to purge
---let $relay_log_space_while_sql_is_executing = query_get_value(SHOW SLAVE STATUS, Relay_Log_Space, 1)
---let $relay_log_space_limit = query_get_value(SHOW VARIABLES LIKE "relay_log_space_limit", Value, 1)
---let $assert_text= Assert that relay log space is close to the limit
---let $assert_cond= $relay_log_space_while_sql_is_executing <= $relay_log_space_limit * 1.20
---source include/assert.inc
+--let $relay_log_space_limit= `select variable_value from information_schema.global_variables where variable_name like 'relay_log_space_limit'`
+if (`select $relay_log_space_limit >= $space_total`)
+{
+    --echo *** relay_log_space_limit on the slave must be less than size of unprocessed events. ***
+    --die
+}
 
 # unlock the table and let SQL thread continue applying events
 UNLOCK TABLES;
+# make the oldest logs removable
+
+--let $count= 14
+--let $table= t1
+--source include/wait_until_rows_count.inc
+FLUSH LOGS;
+
+--disable_query_log
+# Prove the total relay log space decreases below the limit
+--let $cnt=20 # 20 seconds
+--let $relay_log_space = query_get_value(SHOW SLAVE STATUS, Relay_Log_Space, 1)
+while (`select $relay_log_space > $relay_log_space_limit`)
+{
+    --sleep 1
+    FLUSH LOGS; # SQL thread gets awakened to proceed to purge task
+    --dec $cnt
+    --let $relay_log_space = query_get_value(SHOW SLAVE STATUS, Relay_Log_Space, 1)
+    if ($cnt < 0)
+    {
+	--echo *** Failed to wait for total relay log space freed below the limit. ***
+	--die
+    }
+}
+--enable_query_log
 
 --connection master
 --sync_slave_with_master
@@ -95,7 +105,6 @@ UNLOCK TABLES;
 
 --connection master
 DROP TABLE t1;
---enable_query_log
 --sync_slave_with_master
 
 --source include/rpl_end.inc

=== modified file 'sql/rpl_slave.cc'
--- a/sql/rpl_slave.cc	2012-04-23 18:20:01 +0000
+++ b/sql/rpl_slave.cc	2012-04-27 18:40:38 +0000
@@ -6993,17 +6993,9 @@ static Log_event* next_event(Relay_log_i
           }
           else
           {
-            if (rli->mts_group_status != Relay_log_info::MTS_IN_GROUP)
-            {
-              /*
-                Before to let the current relay log be purged Workers
-                have to finish off their current assignments.
-              */
-              (void) wait_for_workers_to_finish(rli);
-              rli->sql_force_rotate_relay= true;
-            }
+            rli->sql_force_rotate_relay=
+              (rli->mts_group_status != Relay_log_info::MTS_IN_GROUP);
           }
-
           /* ask for one more event */
           rli->ignore_log_space_limit= true;
         }

No bundle (reason: useless for push emails).
Thread
bzr push into mysql-trunk branch (andrei.elkin:3748 to 3749) Bug#12400313Andrei Elkin2 May