| 1 |
include/master-slave.inc |
| 2 |
[connection master] |
| 3 |
create table if not exists t1 (n int); |
| 4 |
drop table t1; |
| 5 |
call mtr.add_suppression ("Slave I/O: Got fatal error 1236 from master when reading data from binary"); |
| 6 |
call mtr.add_suppression ("Error in Log_event::read_log_event"); |
| 7 |
show master status; |
| 8 |
File Position Binlog_Do_DB Binlog_Ignore_DB |
| 9 |
master-bin.000001 # <Binlog_Do_DB> <Binlog_Ignore_DB> |
| 10 |
connection slave; |
| 11 |
include/stop_slave.inc |
| 12 |
change master to master_log_pos=MASTER_LOG_POS, master_use_gtid=no; |
| 13 |
start slave; |
| 14 |
include/wait_for_slave_io_error.inc [errno=1236] |
| 15 |
Last_IO_Error = 'Got fatal error 1236 from master when reading data from binary log: 'binlog truncated in the middle of event; consider out of disk space on master; the first event 'master-bin.000001' at XXX, the last event read from 'master-bin.000001' at XXX, the last byte read from 'master-bin.000001' at XXX.'' |
| 16 |
include/stop_slave_sql.inc |
| 17 |
connection master; |
| 18 |
show master status; |
| 19 |
File Position Binlog_Do_DB Binlog_Ignore_DB |
| 20 |
master-bin.000001 # <Binlog_Do_DB> <Binlog_Ignore_DB> |
| 21 |
create table if not exists t1 (n int); |
| 22 |
drop table if exists t1; |
| 23 |
create table t1 (n int); |
| 24 |
insert into t1 values (1),(2),(3); |
| 25 |
connection slave; |
| 26 |
change master to master_log_pos=MASTER_LOG_POS, master_use_gtid=no; |
| 27 |
start slave; |
| 28 |
select * from t1 ORDER BY n; |
| 29 |
n |
| 30 |
1 |
| 31 |
2 |
| 32 |
3 |
| 33 |
connection master; |
| 34 |
drop table t1; |
| 35 |
connection slave; |
| 36 |
End of 5.0 tests |
| 37 |
include/rpl_end.inc |