File tree Expand file tree Collapse file tree 2 files changed +18
-17
lines changed Expand file tree Collapse file tree 2 files changed +18
-17
lines changed Original file line number Diff line number Diff line change 1
1
include/master-slave.inc
2
2
[connection master]
3
+ include/stop_slave.inc
4
+ CHANGE MASTER TO master_use_gtid=slave_pos;
5
+ include/start_slave.inc
3
6
create table t1 (a int) engine=innodb;
4
7
create table t2 (a int);
5
8
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]
14
10
show tables;
15
11
Tables_in_test
16
12
t2
Original file line number Diff line number Diff line change 1
1
--source include/master-slave.inc
2
2
--source include/have_innodb.inc
3
3
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
+
4
9
--connection master
5
10
create table t1 (a int) engine=innodb;
6
11
create table t2 (a int);
7
12
create table t3 (a int) engine=innodb;
8
- --source include/save_master_gtid.inc
13
+ --save_master_pos
9
14
10
15
--connection slave
11
16
# Using ER_UNKNOWN_STORAGE_ENGINE wont work
12
17
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
+
21
26
show tables;
22
27
show create table t2;
23
28
--error ER_NO_SUCH_TABLE
You can’t perform that action at this time.
0 commit comments