Skip to content
Permalink
Browse files
Merge pull request #676 from codership/MDEV-13549-fixes-for-galera_gt…
…id_slave

MDEV-13549 Fix and re-enable MTR test galera.galera_gtid_slave
  • Loading branch information
Jan Lindström committed Mar 29, 2018
2 parents e550063 + e376122 commit d21adb5
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
@@ -45,7 +45,6 @@ galera_pc_ignore_sb : MDEV-13549 Galera test failures 10.1
galera_lock_table : MDEV-13549 Galera test failures 10.1
MW-284 : MDEV-13549 Galera test failures 10.1
galera_gtid : MDEV-13549 Galera test failures 10.1
galera_gtid_slave : MDEV-13549 Galera test failures 10.1
galera_unicode_identifiers : MDEV-13549 Galera test failures 10.1
galera.galera_gcs_fc_limit : MDEV-13549 Galera test failures 10.1
galera.MW-329 : wsrep_local_replays not stable
@@ -19,8 +19,8 @@ SELECT @@global.gtid_binlog_state;
@@global.gtid_binlog_state
1-1-4,2-2-2,2-3-3
DROP TABLE t1,t2;
reset master;
STOP SLAVE;
RESET SLAVE ALL;
reset master;
reset master;
reset master;
@@ -38,7 +38,13 @@ SELECT @@global.gtid_binlog_state;

--let $wait_condition = SELECT COUNT(*) = 1 FROM t1;
--source include/wait_condition.inc
--sleep 1

--let $wait_condition = SELECT COUNT(*) = 1 FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 't2';
--source include/wait_condition.inc

--let $wait_condition = SELECT COUNT(*) = 2 FROM t2;
--source include/wait_condition.inc

INSERT INTO t1 VALUES(2);
INSERT INTO t1 VALUES(3);
SELECT @@global.gtid_binlog_state;
@@ -52,14 +58,6 @@ SELECT @@global.gtid_binlog_state;

--connection node_1
DROP TABLE t1,t2;
reset master;
#
# Unfortunately without the sleep below the following statement fails with "query returned no rows", which
# is difficult to understand given that it is an aggregate query. A "query execution was interrupted"
# warning is also reported by MTR, which is also weird.
#

--sleep 1

--connection node_2
--let $wait_condition = SELECT COUNT(*) = 0 FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 't1';
@@ -76,3 +74,6 @@ reset master;

--connection node_3
reset master;

--connection node_1
reset master;

0 comments on commit d21adb5

Please sign in to comment.