mirror of
https://github.com/MariaDB/server.git
synced 2025-01-23 23:34:34 +01:00
76eaa2595f
added a test case for it - took some creative work to figure out how to make it happen at will updated the manual Docs/manual.texi: fixed wrong info on SLAVE_SKIP_COUNTER fixed wrong info in BitKeeper tree build instructions updated change history about bug fix mysql-test/t/rpl_sporadic_master.test: tried hard to get slave confused, but failed. nevertheless, a more exhaustive test case does not hurt sql/slave.cc: fixed mysterious offset confusion bug
33 lines
912 B
Text
33 lines
912 B
Text
# test to see if replication can continue when master sporadically fails on
|
|
# COM_BINLOG_DUMP and additionally limits the number of events per dump
|
|
|
|
source include/master-slave.inc;
|
|
connection master;
|
|
drop table if exists t1,t2;
|
|
create table t2(n int);
|
|
create table t1(n int not null auto_increment primary key);
|
|
insert into t1 values (NULL),(NULL);
|
|
delete from t1;
|
|
# We have to use 4 in the following to make this test work with all table types
|
|
insert into t1 values (4),(NULL);
|
|
save_master_pos;
|
|
connection slave;
|
|
sync_with_master;
|
|
slave stop;
|
|
slave start;
|
|
connection master;
|
|
insert into t1 values (NULL),(NULL);
|
|
flush logs;
|
|
delete from t1;
|
|
insert into t1 values (10),(NULL);
|
|
insert into t1 values (NULL),(NULL);
|
|
insert into t1 values (NULL),(NULL);
|
|
save_master_pos;
|
|
connection slave;
|
|
sync_with_master;
|
|
select * from t1;
|
|
connection master;
|
|
drop table t1,t2;
|
|
save_master_pos;
|
|
connection slave;
|
|
sync_with_master;
|