Skip to content

Commit 0e38cd3

Browse files
MDEV-20137 rpl.mdev_17588 fails in buildbot with "Table doesn't exist"
Fix the test case.
1 parent fe4eacd commit 0e38cd3

File tree

2 files changed

+18
-17
lines changed

2 files changed

+18
-17
lines changed

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

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
11
include/master-slave.inc
22
[connection master]
3+
include/stop_slave.inc
4+
CHANGE MASTER TO master_use_gtid=slave_pos;
5+
include/start_slave.inc
36
create table t1 (a int) engine=innodb;
47
create table t2 (a int);
58
create table t3 (a int) engine=innodb;
6-
include/save_master_gtid.inc
7-
include/wait_for_slave_sql_error.inc [errno=1286]
8-
Last_Error = 'Error 'Unknown storage engine 'innodb'' on query. Default database: 'test'. Query: 'create table t1 (a int) engine=innodb''
9-
STOP SLAVE IO_THREAD;
10-
include/wait_for_slave_to_stop.inc
11-
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=1;
12-
include/start_slave.inc
13-
include/sync_with_master_gtid.inc
9+
include/wait_for_slave_sql_error_and_skip.inc [errno=1286]
1410
show tables;
1511
Tables_in_test
1612
t2

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

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,28 @@
11
--source include/master-slave.inc
22
--source include/have_innodb.inc
33

4+
--connection slave
5+
--source include/stop_slave.inc
6+
CHANGE MASTER TO master_use_gtid=slave_pos;
7+
--source include/start_slave.inc
8+
49
--connection master
510
create table t1 (a int) engine=innodb;
611
create table t2 (a int);
712
create table t3 (a int) engine=innodb;
8-
--source include/save_master_gtid.inc
13+
--save_master_pos
914

1015
--connection slave
1116
# Using ER_UNKNOWN_STORAGE_ENGINE wont work
1217
let $slave_sql_errno= 1286;
13-
--source include/wait_for_slave_sql_error.inc
14-
--let $status_items= Last_Error
15-
--source include/show_slave_status.inc
16-
STOP SLAVE IO_THREAD;
17-
source include/wait_for_slave_to_stop.inc;
18-
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=1;
19-
--source include/start_slave.inc
20-
--source include/sync_with_master_gtid.inc
18+
--source include/wait_for_slave_sql_error_and_skip.inc
19+
--sync_with_master
20+
21+
--let $show_statement= SHOW PROCESSLIST
22+
--let $field= State
23+
--let $condition= 'Slave has read all relay log; waiting for the slave I/O thread to update it';
24+
--source include/wait_show_condition.inc
25+
2126
show tables;
2227
show create table t2;
2328
--error ER_NO_SUCH_TABLE

0 commit comments

Comments
 (0)