~ubuntu-branches/ubuntu/natty/mysql-5.1/natty-proposed

« back to all changes in this revision

Viewing changes to mysql-test/suite/rpl/t/rpl_dual_pos_advance.test

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2012-02-22 08:30:45 UTC
  • mfrom: (1.4.1)
  • Revision ID: package-import@ubuntu.com-20120222083045-2rd53r4bnyx7qus4
Tags: 5.1.61-0ubuntu0.11.04.1
* SECURITY UPDATE: Update to 5.1.61 to fix multiple security issues
  (LP: #937869)
  - http://www.oracle.com/technetwork/topics/security/cpujan2012-366304.html
  - CVE-2011-2262
  - CVE-2012-0075
  - CVE-2012-0112
  - CVE-2012-0113
  - CVE-2012-0114
  - CVE-2012-0115
  - CVE-2012-0116
  - CVE-2012-0117
  - CVE-2012-0118
  - CVE-2012-0119
  - CVE-2012-0120
  - CVE-2012-0484
  - CVE-2012-0485
  - CVE-2012-0486
  - CVE-2012-0487
  - CVE-2012-0488
  - CVE-2012-0489
  - CVE-2012-0490
  - CVE-2012-0491
  - CVE-2012-0492
  - CVE-2012-0493
  - CVE-2012-0494
  - CVE-2012-0495
  - CVE-2012-0496

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
# of their server id).
7
7
# It also will test BUG#13861.
8
8
 
9
 
source include/master-slave.inc;
10
9
source include/have_innodb.inc;
11
10
 
12
 
 
13
 
# set up "dual head"
14
 
 
15
 
# Needed for debug info in wait_for_slave_sql_to_stop.
16
 
let $master_connection= slave;
17
 
connection slave;
18
 
reset master;
19
 
 
20
 
connection master;
21
 
--replace_result $SLAVE_MYPORT SLAVE_PORT
22
 
eval change master to master_host="127.0.0.1",master_port=$SLAVE_MYPORT,master_user="root";
23
 
 
24
 
source include/start_slave.inc;
 
11
--let $rpl_topology= 1->2->1
 
12
--source include/rpl_init.inc
25
13
 
26
14
# now we test it
27
15
 
28
 
connection slave;
 
16
connection server_2;
29
17
 
30
18
create table t1 (n int);
31
19
let $master_log_file= query_get_value(SHOW MASTER STATUS, File, 1);
32
20
let $master_log_pos_1= query_get_value(SHOW MASTER STATUS, Position, 1);
33
21
let $master_log_pos_1= `SELECT $master_log_pos_1 + 3`;
34
22
 
35
 
sync_slave_with_master master;
 
23
--sync_slave_with_master server_1
36
24
 
37
25
#
38
26
# BUG#13861 - START SLAVE UNTIL may stop 1 evnt too late if
42
30
 
43
31
create table t2 (n int); # create one ignored event
44
32
 
45
 
sync_slave_with_master;
 
33
--sync_slave_with_master server_2
46
34
 
47
35
show tables;
48
36
 
59
47
commit;
60
48
insert into t3 values(4);
61
49
 
62
 
connection master;
 
50
 
 
51
connection server_1;
63
52
 
64
53
# bug is that START SLAVE UNTIL may stop too late, we test that by
65
54
# asking it to stop before creation of t3.
89
78
 
90
79
# BUG#13023 is that Exec_master_log_pos may stay too low "forever":
91
80
 
92
 
connection master;
 
81
connection server_1;
93
82
 
94
83
create table t4 (n int); # create 3 ignored events
95
84
create table t5 (n int);
96
85
create table t6 (n int);
97
86
 
98
 
sync_slave_with_master;
99
 
sync_slave_with_master master;
 
87
--sync_slave_with_master server_2
100
88
 
101
89
# then BUG#13023 caused hang below ("master" looks behind, while it's
102
90
# not in terms of updates done).
 
91
--sync_slave_with_master server_1
103
92
 
104
93
show tables;
105
94
 
106
95
# cleanup
107
 
 
108
 
source include/stop_slave.inc;
109
 
reset slave;
110
 
drop table t1,t2,t3,t4,t5,t6;
111
 
 
112
 
sync_slave_with_master;
113
 
 
114
 
# End of 4.1 tests
 
96
drop table t1, t2, t3, t4, t5, t6;
 
97
--source include/rpl_end.inc