List:Commits« Previous MessageNext Message »
From:Magne Mahre Date:December 16 2009 7:54pm
Subject:bzr commit into mysql-5.1-bugteam branch (magne.mahre:3280) Bug#47017
View as plain text  
#At file:///data/z/mysql-5.1-bugteam-47017/ based on revid:joro@stripped

 3280 Magne Mahre	2009-12-16
      Bug#47017 rpl_timezone fails on PB-2 with mismatch error
      
      The bug is caused by a race condition between the 
      INSERT DELAYED thread and the client thread's FLUSH TABLE.  The 
      FLUSH TABLE does not guarantee (as is (wrongly) suggested in the 
      test case) that the INSERT DELAYED is ever executed.  The 
      execution of the test case will thus not be deterministic.
      
      The fix has been to do a deterministic verification that both
      threads are complete by checking the content of the table.

    modified:
      mysql-test/suite/rpl/t/rpl_timezone.test
=== modified file 'mysql-test/suite/rpl/t/rpl_timezone.test'
--- a/mysql-test/suite/rpl/t/rpl_timezone.test	2009-03-25 10:42:16 +0000
+++ b/mysql-test/suite/rpl/t/rpl_timezone.test	2009-12-16 19:53:56 +0000
@@ -179,8 +179,11 @@ insert into t1 values('2008-12-23 19:39:
 --connection master1
 SET @@session.time_zone='+02:00';
 insert delayed into t1 values ('2008-12-23 19:39:39',2);
-# Forces table t1 to be closed and flushes the query cache.
-# This makes sure that 'delayed insert' is executed before next statement.
+
+# wait for the delayed insert to be executed
+let $wait_condition= SELECT date FROM t1 WHERE a=2;
+--source include/wait_condition.inc
+
 flush table t1;
 flush logs;
 select * from t1;


Attachment: [text/bzr-bundle] bzr/magne.mahre@sun.com-20091216195356-ofxkjyhl2e21dnzf.bundle
Thread
bzr commit into mysql-5.1-bugteam branch (magne.mahre:3280) Bug#47017Magne Mahre16 Dec