2001-07-16 12:27:29 +02:00
|
|
|
# test to see if replication can continue when master sporadically fails on
|
2001-06-29 02:22:29 +02:00
|
|
|
# COM_BINLOG_DUMP and additionally limits the number of events per dump
|
2001-07-16 12:27:29 +02:00
|
|
|
|
2001-06-29 02:22:29 +02:00
|
|
|
source include/master-slave.inc;
|
2002-08-08 02:12:02 +02:00
|
|
|
|
2001-07-18 22:26:43 +02:00
|
|
|
create table t2(n int);
|
2001-06-29 02:22:29 +02:00
|
|
|
create table t1(n int not null auto_increment primary key);
|
|
|
|
insert into t1 values (NULL),(NULL);
|
2001-07-11 04:35:42 +02:00
|
|
|
truncate table t1;
|
2001-07-16 12:27:29 +02:00
|
|
|
# We have to use 4 in the following to make this test work with all table types
|
|
|
|
insert into t1 values (4),(NULL);
|
2002-10-25 01:46:14 +02:00
|
|
|
sync_slave_with_master;
|
|
|
|
stop slave;
|
|
|
|
start slave;
|
2001-07-18 22:26:43 +02:00
|
|
|
connection master;
|
2001-06-29 02:22:29 +02:00
|
|
|
insert into t1 values (NULL),(NULL);
|
|
|
|
flush logs;
|
2001-07-11 04:35:42 +02:00
|
|
|
truncate table t1;
|
2001-07-19 01:37:41 +02:00
|
|
|
insert into t1 values (10),(NULL),(NULL),(NULL),(NULL),(NULL);
|
2002-10-25 01:46:14 +02:00
|
|
|
sync_slave_with_master;
|
2001-06-29 02:22:29 +02:00
|
|
|
select * from t1;
|
|
|
|
connection master;
|
2001-07-18 22:26:43 +02:00
|
|
|
drop table t1,t2;
|
2002-10-25 01:46:14 +02:00
|
|
|
sync_slave_with_master;
|