1. 27 Sep, 2009 1 commit
    • Luis Soares's avatar
      BUG#44661: rpl_ndb.rpl_ndb_circular_simplex fails because of · ea6cb650
      Luis Soares authored
      failure to cleanup of table
      
      The test case was not dropping a table before exiting (ie, it was
      not cleaning itself after execution). In this case, the warning
      message stating that the test did not do a proper cleanup was
      deterministic (which can be annoying).
      
      I have found other tests cases on which mtr sporadically reports
      that they have not cleaned up after execution:
      
       - rpl_ndb_circular
       - rpl_failed_optimize
      
      In this case, the master was dropping a table but there was no
      synchronization between the slave and the master.
      
      This patch addresses the rpl_ndb_circular_simplex case by adding
      the missing DROP table. The other cases are fixed by deploying
      the missing sync_slave_with_master instruction.
      ea6cb650
  2. 13 Sep, 2009 2 commits
    • Luis Soares's avatar
      BUG#47016: rpl_do_grant fails on PB-2 with a failing connect · 09f07bc1
      Luis Soares authored
            
      The test case rpl_do_grant fails sporadically on PB2 with "Access
      denied for user 'create_rout_db'@'localhost' ...". Inspecting the
      test case, one may find that if issues a GRANT on the master
      connection and immediately after it creates two new connections
      (one to the master and one to the slave) using the credentials
      set with the GRANT.
            
      Unfortunately, there is no synchronization between master and
      slave after the grant and before the connections are
      established. This can result in slave not having executed the
      GRANT by the time the connection is attempted.
            
      This patch fixes this by deploying a sync_slave_with_master
      between the grant and the connections attempt.
      09f07bc1
    • Luis Soares's avatar
      BUG#47014: rpl_drop_temp fails on PB-2 with results mismatch · 4cce928e
      Luis Soares authored
            
      The test case creates two temporary tables, then closes the
      connection, waits for it to disconnect, then syncs the slave with
      the master, checks for remaining opened temporary tables on
      slave (which should be 0) and finally drops the used
      database (mysqltest).
            
      Unfortunately, sometimes, the test fails with one open table on
      the slave. This seems to be caused by the fact that waiting for
      the connection to be closed is not sufficient. The test needs to
      wait for the DROP event to be logged and only then synchronize
      the slave with the master and proceed with the check. This is
      caused by the asynchronous nature of the disconnect wrt
      binlogging of the DROP temporary table statement.
            
      We fix this by deploying a call to wait_for_binlog_event.inc
      on the test case, which makes execution to wait for the DROP
      temp tables event before synchronizing master and slave.
      4cce928e
  3. 11 Sep, 2009 2 commits
  4. 10 Sep, 2009 11 commits
  5. 09 Sep, 2009 4 commits
  6. 08 Sep, 2009 2 commits
  7. 07 Sep, 2009 6 commits
  8. 05 Sep, 2009 1 commit
    • Alexey Kopytov's avatar
      Bug #46159: simple query that never returns · f1617238
      Alexey Kopytov authored
       
      The external 'for' loop in remove_dup_with_compare() handled 
      HA_ERR_RECORD_DELETED by just starting over without advancing 
      to the next record which caused an infinite loop. 
       
      This condition could be triggered on certain data by a SELECT 
      query containing DISTINCT, GROUP BY and HAVING clauses. 
      
      Fixed remove_dup_with_compare() so that we always advance to 
      the next record when receiving HA_ERR_RECORD_DELETED from 
      rnd_next(). 
      f1617238
  9. 04 Sep, 2009 11 commits