~linuxjedi/drizzle/trunk-bug-667053

« back to all changes in this revision

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

  • Committer: brian
  • Date: 2008-06-25 05:29:13 UTC
  • Revision ID: brian@localhost.localdomain-20080625052913-6upwo0jsrl4lnapl
clean slate

Show diffs side-by-side

added added

removed removed

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