Skip to content

Commit 56c0ea0

Browse files
author
Joao Gramacho
committed
BUG#24801209: RPL_GTID.RPL_GTID_TEMP_TABLE FAILS SPORADICALLY ON PB2
IN DIFF_TABLES.INC Problem ------- The MTR test rpl_gtid.rpl_gtid_temp_table fails sporadically on pushbuild on perpush as well as weekly/daily runs due to diff- erence in table contents between master and slave being reported by "include/diff_tables.inc". Analysis -------- The issue seems to be caused because of missing synchronization point between master and slave after the workload and before the master/slave diff tables check. Fix --- Added a master/slave synchronization before table diff checks.
1 parent 846f0d6 commit 56c0ea0

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

mysql-test/suite/rpl/r/rpl_gtid_temp_table.result

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1211,6 +1211,8 @@ END;
12111211
DELETE FROM non_trans_table2;
12121212
Got one of the listed errors
12131213
DROP TRIGGER trigger1;
1214+
include/sync_slave_sql_with_master.inc
1215+
[connection master]
12141216
include/diff_tables.inc [master:trans_table1, slave:trans_table1]
12151217
include/diff_tables.inc [master:trans_table2, slave:trans_table2]
12161218
include/diff_tables.inc [master:non_trans_table1, slave:non_trans_table1]

mysql-test/suite/rpl/t/rpl_gtid_temp_table.test

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,10 @@ INSERT INTO non_trans_table2 VALUES (1);
7575
--let $func_or_trig_body=CREATE TEMPORARY TABLE tt1(i INT) ENGINE=MyISAM; DROP TEMPORARY TABLE IF EXISTS tt1; INSERT INTO trans_table1 VALUES (12);
7676
--source extra/rpl_tests/rpl_gtid_temp_table_in_func_or_trigger.inc
7777

78+
# Sync slave with master before checking diff tables
79+
--source include/sync_slave_sql_with_master.inc
80+
--source include/rpl_connection_master.inc
81+
7882
# Test that all Slave tables are in sync with Master tables
7983
--let $diff_tables=master:trans_table1, slave:trans_table1
8084
--source include/diff_tables.inc

0 commit comments

Comments
 (0)