Skip to content

Commit

Permalink
MDEV-22181 : galera.galera_sst_mysqldump_with_key MTR failed: INSERT …
Browse files Browse the repository at this point in the history
…failed: 1146: Table 'test.t1' doesn't exist

Add wait condition to make sure table test.t1 is replicated
to node_2 before we insert to it.
  • Loading branch information
Jan Lindström committed Apr 22, 2020
1 parent 0efe197 commit a6a8774
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mysql-test/suite/galera/include/galera_st_shutdown_slave.inc
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ INSERT INTO t1 VALUES ('node1_committed_before');
COMMIT;

--connection node_2
--let $wait_condition = SELECT COUNT(*) = 1 FROM INFORMATION_SCHEMA.INNODB_SYS_TABLES WHERE NAME LIKE 'test/t1';
--source include/wait_condition.inc

SET AUTOCOMMIT=OFF;
START TRANSACTION;
INSERT INTO t1 VALUES ('node2_committed_before');
Expand Down

0 comments on commit a6a8774

Please sign in to comment.