| 1 |
--source include/master-slave.inc |
| 2 |
--source include/have_innodb.inc |
| 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 |
|
| 9 |
--connection master |
| 10 |
create table t1 (a int) engine=innodb; |
| 11 |
create table t2 (a int); |
| 12 |
create table t3 (a int) engine=innodb; |
| 13 |
--save_master_pos |
| 14 |
|
| 15 |
--connection slave |
| 16 |
# Using ER_UNKNOWN_STORAGE_ENGINE wont work |
| 17 |
let $slave_sql_errno= 1286; |
| 18 |
--source include/wait_for_slave_sql_error_and_skip.inc |
| 19 |
--sync_with_master |
| 20 |
|
| 21 |
--let $assert_text= Status should be 'Slave has read all relay log...' |
| 22 |
--let $assert_cond= "[SHOW SLAVE STATUS, Slave_SQL_Running_State, 1]" |
| 23 |
#Like "Slave has read all relay log%" |
| 24 |
--source include/rpl_assert.inc |
| 25 |
|
| 26 |
show tables; |
| 27 |
show create table t2; |
| 28 |
--error ER_NO_SUCH_TABLE |
| 29 |
show create table t1; |
| 30 |
--error ER_NO_SUCH_TABLE |
| 31 |
show create table t3; |
| 32 |
|
| 33 |
--connection master |
| 34 |
drop table if exists t1; |
| 35 |
drop table if exists t2; |
| 36 |
drop table if exists t3; |
| 37 |
--source include/save_master_gtid.inc |
| 38 |
|
| 39 |
--connection slave |
| 40 |
--source include/sync_with_master_gtid.inc |
| 41 |
|
| 42 |
|
| 43 |
CALL mtr.add_suppression('Slave: Unknown storage engine .* Error_code: 1286'); |
| 44 |
--source include/rpl_end.inc |