mirror of
https://github.com/MariaDB/server.git
synced 2025-08-30 11:22:14 +03:00
BUG#37373: rpl_ndb_transaction fails sporadically in pb on sol10-amd64-a and sol10-sparc-a
Problem: rpl_ndb_transaction fails because it assumes nothing is written to the binlog at a certain point. However, ndb may binlog updates in ndb system tables at a nondeterministic time point after an ndb table update has been committed. Fix: break the test into two. rpl_ndb_transaction still does the ndb updates needed by the first half of the test. The new test case rpl_bug26395 includes the part that assumes nothing more will be written to the binlog.
This commit is contained in:
25
mysql-test/include/sync_slave_io_with_master.inc
Normal file
25
mysql-test/include/sync_slave_io_with_master.inc
Normal file
@@ -0,0 +1,25 @@
|
||||
# ==== Purpose ====
|
||||
#
|
||||
# Waits until the slave IO thread has been synced, i.e., all events
|
||||
# have been copied over to slave. Does not care if the SQL thread is
|
||||
# in sync.
|
||||
#
|
||||
#
|
||||
# ==== Usage ====
|
||||
#
|
||||
# Syncs to the current position on master, as found by SHOW MASTER
|
||||
# STATUS.
|
||||
#
|
||||
# Must be called on the master.
|
||||
|
||||
let $_master_file= query_get_value("SHOW MASTER STATUS", File, 1);
|
||||
let $_master_pos= query_get_value("SHOW MASTER STATUS", Position, 1);
|
||||
|
||||
connection slave;
|
||||
|
||||
let $slave_param= Master_Log_File;
|
||||
let $slave_param_value= $_master_file;
|
||||
source include/wait_for_slave_param.inc;
|
||||
let $slave_param= Read_Master_Log_Pos;
|
||||
let $slave_param_value= $_master_pos;
|
||||
source include/wait_for_slave_param.inc;
|
Reference in New Issue
Block a user