rpl_log_pos.test 1.12 KB
Newer Older
1 2 3 4 5 6
##########
# Change Author: JBM
# Change Date: 2006-01-16
# Change: Added Order by for NDB
##########

7 8 9
#
# Testing of setting slave to wrong log position with master_log_pos
#
10 11 12

# Passes with rbr no problem, removed statement include [jbm]

13
source include/master-slave.inc;
14
--replace_column 3 <Binlog_Ignore_DB>
15
show master status;
16
sync_slave_with_master;
17
source include/show_slave_status.inc;
18
stop slave;
19
change master to master_log_pos=75;
20
start slave;
21
sleep 5;
22
stop slave;
23

24
change master to master_log_pos=75;
25
source include/show_slave_status.inc;
26
start slave;
27
sleep 5;
28
source include/show_slave_status.inc;
29
stop slave;
30
change master to master_log_pos=178;
31
start slave;
32
sleep 2;
33
source include/show_slave_status.inc;
34
connection master;
35
--replace_column 3 <Binlog_Ignore_DB>
36
show master status;
37 38 39 40
create table if not exists t1 (n int);
drop table if exists t1;
create table t1 (n int);
insert into t1 values (1),(2),(3);
41
save_master_pos;
42
connection slave;
43
stop slave;
44
change master to master_log_pos=106;
45
start slave;
46
sync_with_master;
47
select * from t1 ORDER BY n;
48
connection master;
49
drop table t1;
50
sync_slave_with_master;
51 52

# End of 4.1 tests