~ubuntu-branches/ubuntu/precise/mysql-5.1/precise

« back to all changes in this revision

Viewing changes to mysql-test/suite/rpl/r/rpl_row_max_relay_size.result

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Tretkowski
  • Date: 2010-03-17 14:56:02 UTC
  • Revision ID: james.westby@ubuntu.com-20100317145602-x7e30l1b2sb5s6w6
Tags: upstream-5.1.45
ImportĀ upstreamĀ versionĀ 5.1.45

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
stop slave;
 
2
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
 
3
reset master;
 
4
reset slave;
 
5
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
 
6
start slave;
 
7
stop slave;
 
8
#
 
9
# Generate a big enough master's binlog to cause relay log rotations
 
10
#
 
11
create table t1 (a int);
 
12
drop table t1;
 
13
reset slave;
 
14
#
 
15
# Test 1
 
16
#
 
17
set @my_max_binlog_size= @@global.max_binlog_size;
 
18
set global max_binlog_size=8192;
 
19
set global max_relay_log_size=8192-1;
 
20
select @@global.max_relay_log_size;
 
21
@@global.max_relay_log_size
 
22
4096
 
23
start slave;
 
24
SHOW SLAVE STATUS;
 
25
Slave_IO_State  #
 
26
Master_Host     127.0.0.1
 
27
Master_User     root
 
28
Master_Port     MASTER_PORT
 
29
Connect_Retry   1
 
30
Master_Log_File master-bin.000001
 
31
Read_Master_Log_Pos     #
 
32
Relay_Log_File  #
 
33
Relay_Log_Pos   #
 
34
Relay_Master_Log_File   master-bin.000001
 
35
Slave_IO_Running        Yes
 
36
Slave_SQL_Running       Yes
 
37
Replicate_Do_DB 
 
38
Replicate_Ignore_DB     
 
39
Replicate_Do_Table      
 
40
Replicate_Ignore_Table  #
 
41
Replicate_Wild_Do_Table 
 
42
Replicate_Wild_Ignore_Table     
 
43
Last_Errno      0
 
44
Last_Error      
 
45
Skip_Counter    0
 
46
Exec_Master_Log_Pos     #
 
47
Relay_Log_Space #
 
48
Until_Condition None
 
49
Until_Log_File  
 
50
Until_Log_Pos   0
 
51
Master_SSL_Allowed      No
 
52
Master_SSL_CA_File      
 
53
Master_SSL_CA_Path      
 
54
Master_SSL_Cert 
 
55
Master_SSL_Cipher       
 
56
Master_SSL_Key  
 
57
Seconds_Behind_Master   #
 
58
Master_SSL_Verify_Server_Cert   No
 
59
Last_IO_Errno   #
 
60
Last_IO_Error   #
 
61
Last_SQL_Errno  0
 
62
Last_SQL_Error  
 
63
#
 
64
# Test 2
 
65
#
 
66
stop slave;
 
67
reset slave;
 
68
set global max_relay_log_size=(5*4096);
 
69
select @@global.max_relay_log_size;
 
70
@@global.max_relay_log_size     20480
 
71
start slave;
 
72
SHOW SLAVE STATUS;
 
73
Slave_IO_State  #
 
74
Master_Host     127.0.0.1
 
75
Master_User     root
 
76
Master_Port     MASTER_PORT
 
77
Connect_Retry   1
 
78
Master_Log_File master-bin.000001
 
79
Read_Master_Log_Pos     #
 
80
Relay_Log_File  #
 
81
Relay_Log_Pos   #
 
82
Relay_Master_Log_File   master-bin.000001
 
83
Slave_IO_Running        Yes
 
84
Slave_SQL_Running       Yes
 
85
Replicate_Do_DB 
 
86
Replicate_Ignore_DB     
 
87
Replicate_Do_Table      
 
88
Replicate_Ignore_Table  #
 
89
Replicate_Wild_Do_Table 
 
90
Replicate_Wild_Ignore_Table     
 
91
Last_Errno      0
 
92
Last_Error      
 
93
Skip_Counter    0
 
94
Exec_Master_Log_Pos     #
 
95
Relay_Log_Space #
 
96
Until_Condition None
 
97
Until_Log_File  
 
98
Until_Log_Pos   0
 
99
Master_SSL_Allowed      No
 
100
Master_SSL_CA_File      
 
101
Master_SSL_CA_Path      
 
102
Master_SSL_Cert 
 
103
Master_SSL_Cipher       
 
104
Master_SSL_Key  
 
105
Seconds_Behind_Master   #
 
106
Master_SSL_Verify_Server_Cert   No
 
107
Last_IO_Errno   #
 
108
Last_IO_Error   #
 
109
Last_SQL_Errno  0
 
110
Last_SQL_Error  
 
111
#
 
112
# Test 3: max_relay_log_size = 0
 
113
#
 
114
stop slave;
 
115
reset slave;
 
116
set global max_relay_log_size=0;
 
117
select @@global.max_relay_log_size;
 
118
@@global.max_relay_log_size     0
 
119
start slave;
 
120
SHOW SLAVE STATUS;
 
121
Slave_IO_State  #
 
122
Master_Host     127.0.0.1
 
123
Master_User     root
 
124
Master_Port     MASTER_PORT
 
125
Connect_Retry   1
 
126
Master_Log_File master-bin.000001
 
127
Read_Master_Log_Pos     #
 
128
Relay_Log_File  #
 
129
Relay_Log_Pos   #
 
130
Relay_Master_Log_File   master-bin.000001
 
131
Slave_IO_Running        Yes
 
132
Slave_SQL_Running       Yes
 
133
Replicate_Do_DB 
 
134
Replicate_Ignore_DB     
 
135
Replicate_Do_Table      
 
136
Replicate_Ignore_Table  #
 
137
Replicate_Wild_Do_Table 
 
138
Replicate_Wild_Ignore_Table     
 
139
Last_Errno      0
 
140
Last_Error      
 
141
Skip_Counter    0
 
142
Exec_Master_Log_Pos     #
 
143
Relay_Log_Space #
 
144
Until_Condition None
 
145
Until_Log_File  
 
146
Until_Log_Pos   0
 
147
Master_SSL_Allowed      No
 
148
Master_SSL_CA_File      
 
149
Master_SSL_CA_Path      
 
150
Master_SSL_Cert 
 
151
Master_SSL_Cipher       
 
152
Master_SSL_Key  
 
153
Seconds_Behind_Master   #
 
154
Master_SSL_Verify_Server_Cert   No
 
155
Last_IO_Errno   #
 
156
Last_IO_Error   #
 
157
Last_SQL_Errno  0
 
158
Last_SQL_Error  
 
159
#
 
160
# Test 4: Tests below are mainly to ensure that we have not coded with wrong assumptions
 
161
#
 
162
stop slave;
 
163
reset slave;
 
164
flush logs;
 
165
SHOW SLAVE STATUS;
 
166
Slave_IO_State  #
 
167
Master_Host     127.0.0.1
 
168
Master_User     root
 
169
Master_Port     MASTER_PORT
 
170
Connect_Retry   1
 
171
Master_Log_File 
 
172
Read_Master_Log_Pos     #
 
173
Relay_Log_File  #
 
174
Relay_Log_Pos   #
 
175
Relay_Master_Log_File   
 
176
Slave_IO_Running        No
 
177
Slave_SQL_Running       No
 
178
Replicate_Do_DB 
 
179
Replicate_Ignore_DB     
 
180
Replicate_Do_Table      
 
181
Replicate_Ignore_Table  #
 
182
Replicate_Wild_Do_Table 
 
183
Replicate_Wild_Ignore_Table     
 
184
Last_Errno      0
 
185
Last_Error      
 
186
Skip_Counter    0
 
187
Exec_Master_Log_Pos     #
 
188
Relay_Log_Space #
 
189
Until_Condition None
 
190
Until_Log_File  
 
191
Until_Log_Pos   0
 
192
Master_SSL_Allowed      No
 
193
Master_SSL_CA_File      
 
194
Master_SSL_CA_Path      
 
195
Master_SSL_Cert 
 
196
Master_SSL_Cipher       
 
197
Master_SSL_Key  
 
198
Seconds_Behind_Master   #
 
199
Master_SSL_Verify_Server_Cert   No
 
200
Last_IO_Errno   #
 
201
Last_IO_Error   #
 
202
Last_SQL_Errno  0
 
203
Last_SQL_Error  
 
204
#
 
205
# Test 5
 
206
#
 
207
reset slave;
 
208
start slave;
 
209
flush logs;
 
210
create table t1 (a int);
 
211
SHOW SLAVE STATUS;
 
212
Slave_IO_State  #
 
213
Master_Host     127.0.0.1
 
214
Master_User     root
 
215
Master_Port     MASTER_PORT
 
216
Connect_Retry   1
 
217
Master_Log_File master-bin.000001
 
218
Read_Master_Log_Pos     #
 
219
Relay_Log_File  #
 
220
Relay_Log_Pos   #
 
221
Relay_Master_Log_File   master-bin.000001
 
222
Slave_IO_Running        Yes
 
223
Slave_SQL_Running       Yes
 
224
Replicate_Do_DB 
 
225
Replicate_Ignore_DB     
 
226
Replicate_Do_Table      
 
227
Replicate_Ignore_Table  #
 
228
Replicate_Wild_Do_Table 
 
229
Replicate_Wild_Ignore_Table     
 
230
Last_Errno      0
 
231
Last_Error      
 
232
Skip_Counter    0
 
233
Exec_Master_Log_Pos     #
 
234
Relay_Log_Space #
 
235
Until_Condition None
 
236
Until_Log_File  
 
237
Until_Log_Pos   0
 
238
Master_SSL_Allowed      No
 
239
Master_SSL_CA_File      
 
240
Master_SSL_CA_Path      
 
241
Master_SSL_Cert 
 
242
Master_SSL_Cipher       
 
243
Master_SSL_Key  
 
244
Seconds_Behind_Master   #
 
245
Master_SSL_Verify_Server_Cert   No
 
246
Last_IO_Errno   #
 
247
Last_IO_Error   #
 
248
Last_SQL_Errno  0
 
249
Last_SQL_Error  
 
250
#
 
251
# Test 6: one more rotation, to be sure Relay_Log_Space is correctly updated
 
252
#
 
253
flush logs;
 
254
drop table t1;
 
255
SHOW SLAVE STATUS;
 
256
Slave_IO_State  #
 
257
Master_Host     127.0.0.1
 
258
Master_User     root
 
259
Master_Port     MASTER_PORT
 
260
Connect_Retry   1
 
261
Master_Log_File master-bin.000001
 
262
Read_Master_Log_Pos     #
 
263
Relay_Log_File  #
 
264
Relay_Log_Pos   #
 
265
Relay_Master_Log_File   master-bin.000001
 
266
Slave_IO_Running        Yes
 
267
Slave_SQL_Running       Yes
 
268
Replicate_Do_DB 
 
269
Replicate_Ignore_DB     
 
270
Replicate_Do_Table      
 
271
Replicate_Ignore_Table  #
 
272
Replicate_Wild_Do_Table 
 
273
Replicate_Wild_Ignore_Table     
 
274
Last_Errno      0
 
275
Last_Error      
 
276
Skip_Counter    0
 
277
Exec_Master_Log_Pos     #
 
278
Relay_Log_Space #
 
279
Until_Condition None
 
280
Until_Log_File  
 
281
Until_Log_Pos   0
 
282
Master_SSL_Allowed      No
 
283
Master_SSL_CA_File      
 
284
Master_SSL_CA_Path      
 
285
Master_SSL_Cert 
 
286
Master_SSL_Cipher       
 
287
Master_SSL_Key  
 
288
Seconds_Behind_Master   #
 
289
Master_SSL_Verify_Server_Cert   No
 
290
Last_IO_Errno   #
 
291
Last_IO_Error   #
 
292
Last_SQL_Errno  0
 
293
Last_SQL_Error  
 
294
flush logs;
 
295
show master status;
 
296
File    Position        Binlog_Do_DB    Binlog_Ignore_DB
 
297
master-bin.000002       #       <Binlog_Do_DB>  <Binlog_Ignore_DB>
 
298
set global max_binlog_size= @my_max_binlog_size;
 
299
#
 
300
# End of 4.1 tests
 
301