Skip to content

Commit a440d6e

Browse files
committed
MDEV-11948 innodb.log_file fails in buildbot on CentOS 5
Rewrite the test so that the main server is restarted, instead of --exec $MYSQLD_CMD. In this way, the test can be run with Valgrind and with any --mysqld=--innodb-page-size. Also remove the workaround --skip-innodb-use-native-aio. It should not be needed when we are inheriting the server parameters from the test environment.
1 parent 3534500 commit a440d6e

File tree

2 files changed

+197
-161
lines changed

2 files changed

+197
-161
lines changed

mysql-test/suite/innodb/r/log_file.result

Lines changed: 101 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,33 @@
11
# Testcase for the following bugs
22
# Bug#16691130 - ASSERT WHEN INNODB_LOG_GROUP_HOME_DIR DOES NOT EXIST
33
# Bug#16418661 - CHANGING NAME IN FOR INNODB_DATA_FILE_PATH SHOULD NOT SUCCEED WITH LOG FILES
4-
# Write tmp/log_file/my.cnf
54
# Start mysqld without the possibility to create innodb_undo_tablespaces
5+
SELECT * FROM INFORMATION_SCHEMA.ENGINES
6+
WHERE engine = 'innodb'
7+
AND support IN ('YES', 'DEFAULT', 'ENABLED');
8+
ENGINE SUPPORT COMMENT TRANSACTIONS XA SAVEPOINTS
9+
FOUND /\[ERROR\] InnoDB: Could not create undo tablespace '.*undo002'/ in mysqld.1.err
610
# Remove undo001,undo002,ibdata1,ibdata2,ib_logfile1,ib_logfile2,ib_logfile101
7-
my.cnf
8-
my_restart.err
911
# Start mysqld with non existent innodb_log_group_home_dir
12+
SELECT * FROM INFORMATION_SCHEMA.ENGINES
13+
WHERE engine = 'innodb'
14+
AND support IN ('YES', 'DEFAULT', 'ENABLED');
15+
ENGINE SUPPORT COMMENT TRANSACTIONS XA SAVEPOINTS
16+
FOUND /File .path.to.non-existent.*ib_logfile101: 'create' returned OS error \d+/ in mysqld.1.err
1017
# Remove ibdata1 & ibdata2
11-
my.cnf
12-
my_restart.err
13-
# Start mysqld to create tablespaces according to my.cnf
18+
# Successfully let InnoDB create tablespaces
19+
SELECT COUNT(*) `1` FROM INFORMATION_SCHEMA.ENGINES
20+
WHERE engine='innodb'
21+
AND support IN ('YES', 'DEFAULT', 'ENABLED');
22+
1
23+
1
1424
# Backup tmp/logfile/*
1525
# 1. With ibdata2, Without ibdata1
26+
SELECT * FROM INFORMATION_SCHEMA.ENGINES
27+
WHERE engine = 'innodb'
28+
AND support IN ('YES', 'DEFAULT', 'ENABLED');
29+
ENGINE SUPPORT COMMENT TRANSACTIONS XA SAVEPOINTS
30+
FOUND /The innodb_system data file 'ibdata1' was not found but one of the other data files 'ibdata2' exists/ in mysqld.1.err
1631
bak_ib_logfile0
1732
bak_ib_logfile1
1833
bak_ib_logfile2
@@ -26,12 +41,16 @@ ib_logfile0
2641
ib_logfile1
2742
ib_logfile2
2843
ibdata2
29-
my.cnf
30-
my_restart.err
3144
undo001
3245
undo002
3346
undo003
3447
# 2. With ibdata1, without ibdata2
48+
SELECT * FROM INFORMATION_SCHEMA.ENGINES
49+
WHERE engine = 'innodb'
50+
AND support IN ('YES', 'DEFAULT', 'ENABLED');
51+
ENGINE SUPPORT COMMENT TRANSACTIONS XA SAVEPOINTS
52+
FOUND /InnoDB: Tablespace size stored in header is \d+ pages, but the sum of data file sizes is \d+ pages/ in mysqld.1.err
53+
FOUND /InnoDB: Cannot start InnoDB. The tail of the system tablespace is missing/ in mysqld.1.err
3554
bak_ib_logfile0
3655
bak_ib_logfile1
3756
bak_ib_logfile2
@@ -46,8 +65,6 @@ ib_logfile1
4665
ib_logfile2
4766
ibdata1
4867
ibdata2
49-
my.cnf
50-
my_restart.err
5168
undo001
5269
undo002
5370
undo003
@@ -64,11 +81,14 @@ ib_buffer_pool
6481
ib_logfile0
6582
ib_logfile1
6683
ib_logfile2
67-
my.cnf
68-
my_restart.err
6984
undo001
7085
undo002
7186
undo003
87+
SELECT * FROM INFORMATION_SCHEMA.ENGINES
88+
WHERE engine = 'innodb'
89+
AND support IN ('YES', 'DEFAULT', 'ENABLED');
90+
ENGINE SUPPORT COMMENT TRANSACTIONS XA SAVEPOINTS
91+
FOUND /InnoDB: undo tablespace .*undo001.* exists\. Creating system tablespace with existing undo tablespaces is not supported\. Please delete all undo tablespaces before creating new system tablespace\./ in mysqld.1.err
7292
bak_ib_logfile0
7393
bak_ib_logfile1
7494
bak_ib_logfile2
@@ -81,8 +101,6 @@ ib_buffer_pool
81101
ib_logfile0
82102
ib_logfile1
83103
ib_logfile2
84-
my.cnf
85-
my_restart.err
86104
undo001
87105
undo002
88106
undo003
@@ -96,11 +114,13 @@ bak_undo001
96114
bak_undo002
97115
bak_undo003
98116
ib_buffer_pool
99-
my.cnf
100-
my_restart.err
101117
undo001
102118
undo002
103119
undo003
120+
SELECT * FROM INFORMATION_SCHEMA.ENGINES
121+
WHERE engine = 'innodb'
122+
AND support IN ('YES', 'DEFAULT', 'ENABLED');
123+
ENGINE SUPPORT COMMENT TRANSACTIONS XA SAVEPOINTS
104124
bak_ib_logfile0
105125
bak_ib_logfile1
106126
bak_ib_logfile2
@@ -110,8 +130,6 @@ bak_undo001
110130
bak_undo002
111131
bak_undo003
112132
ib_buffer_pool
113-
my.cnf
114-
my_restart.err
115133
undo001
116134
undo002
117135
undo003
@@ -125,10 +143,12 @@ bak_undo001
125143
bak_undo002
126144
bak_undo003
127145
ib_buffer_pool
128-
my.cnf
129-
my_restart.err
130146
undo001
131147
undo003
148+
SELECT * FROM INFORMATION_SCHEMA.ENGINES
149+
WHERE engine = 'innodb'
150+
AND support IN ('YES', 'DEFAULT', 'ENABLED');
151+
ENGINE SUPPORT COMMENT TRANSACTIONS XA SAVEPOINTS
132152
bak_ib_logfile0
133153
bak_ib_logfile1
134154
bak_ib_logfile2
@@ -138,8 +158,6 @@ bak_undo001
138158
bak_undo002
139159
bak_undo003
140160
ib_buffer_pool
141-
my.cnf
142-
my_restart.err
143161
undo001
144162
undo003
145163
# 6. Without ibdata*,ib_logfile* files & Without undo001, undo002
@@ -152,9 +170,12 @@ bak_undo001
152170
bak_undo002
153171
bak_undo003
154172
ib_buffer_pool
155-
my.cnf
156-
my_restart.err
157173
undo003
174+
SELECT * FROM INFORMATION_SCHEMA.ENGINES
175+
WHERE engine = 'innodb'
176+
AND support IN ('YES', 'DEFAULT', 'ENABLED');
177+
ENGINE SUPPORT COMMENT TRANSACTIONS XA SAVEPOINTS
178+
FOUND /undo tablespace .*undo003.* exists\. Creating system tablespace with existing undo tablespaces is not supported\. Please delete all undo tablespaces before creating new system tablespace\./ in mysqld.1.err
158179
bak_ib_logfile0
159180
bak_ib_logfile1
160181
bak_ib_logfile2
@@ -164,8 +185,6 @@ bak_undo001
164185
bak_undo002
165186
bak_undo003
166187
ib_buffer_pool
167-
my.cnf
168-
my_restart.err
169188
undo003
170189
# 7. With ibdata files & Without undo002
171190
bak_ib_logfile0
@@ -182,10 +201,13 @@ ib_logfile1
182201
ib_logfile2
183202
ibdata1
184203
ibdata2
185-
my.cnf
186-
my_restart.err
187204
undo001
188205
undo003
206+
SELECT * FROM INFORMATION_SCHEMA.ENGINES
207+
WHERE engine = 'innodb'
208+
AND support IN ('YES', 'DEFAULT', 'ENABLED');
209+
ENGINE SUPPORT COMMENT TRANSACTIONS XA SAVEPOINTS
210+
FOUND /Expected to open 3 undo tablespaces but was able to find only 1 undo tablespaces/ in mysqld.1.err
189211
bak_ib_logfile0
190212
bak_ib_logfile1
191213
bak_ib_logfile2
@@ -200,8 +222,6 @@ ib_logfile1
200222
ib_logfile2
201223
ibdata1
202224
ibdata2
203-
my.cnf
204-
my_restart.err
205225
undo001
206226
undo003
207227
# 8. With ibdata files & Without undo001, undo002
@@ -219,9 +239,12 @@ ib_logfile1
219239
ib_logfile2
220240
ibdata1
221241
ibdata2
222-
my.cnf
223-
my_restart.err
224242
undo003
243+
SELECT * FROM INFORMATION_SCHEMA.ENGINES
244+
WHERE engine = 'innodb'
245+
AND support IN ('YES', 'DEFAULT', 'ENABLED');
246+
ENGINE SUPPORT COMMENT TRANSACTIONS XA SAVEPOINTS
247+
FOUND /Expected to open 3 undo tablespaces but was able to find only 0 undo tablespaces/ in mysqld.1.err
225248
bak_ib_logfile0
226249
bak_ib_logfile1
227250
bak_ib_logfile2
@@ -236,8 +259,6 @@ ib_logfile1
236259
ib_logfile2
237260
ibdata1
238261
ibdata2
239-
my.cnf
240-
my_restart.err
241262
undo003
242263
# 9. Without ibdata*, without undo*, Without ib_logfile1 and with ib_logfile2
243264
bak_ib_logfile0
@@ -251,8 +272,12 @@ bak_undo003
251272
ib_buffer_pool
252273
ib_logfile0
253274
ib_logfile2
254-
my.cnf
255-
my_restart.err
275+
SELECT * FROM INFORMATION_SCHEMA.ENGINES
276+
WHERE engine = 'innodb'
277+
AND support IN ('YES', 'DEFAULT', 'ENABLED');
278+
ENGINE SUPPORT COMMENT TRANSACTIONS XA SAVEPOINTS
279+
InnoDB YES Supports transactions, row-level locking, foreign keys and encryption for tables YES YES YES
280+
NOT FOUND /redo log file .*ib_logfile0.* exists\. Creating system tablespace with existing redo log files is not recommended\. Please delete all redo log files before creating new system tablespace\./ in mysqld.1.err
256281
bak_ib_logfile0
257282
bak_ib_logfile1
258283
bak_ib_logfile2
@@ -263,9 +288,36 @@ bak_undo002
263288
bak_undo003
264289
ib_buffer_pool
265290
ib_logfile0
291+
ib_logfile1
266292
ib_logfile2
267-
my.cnf
268-
my_restart.err
293+
ibdata1
294+
ibdata2
295+
undo001
296+
undo002
297+
undo003
298+
# 10. With ibdata*, without ib_logfile0
299+
SELECT * FROM INFORMATION_SCHEMA.ENGINES
300+
WHERE engine = 'innodb'
301+
AND support IN ('YES', 'DEFAULT', 'ENABLED');
302+
ENGINE SUPPORT COMMENT TRANSACTIONS XA SAVEPOINTS
303+
InnoDB YES Supports transactions, row-level locking, foreign keys and encryption for tables YES YES YES
304+
bak_ib_logfile0
305+
bak_ib_logfile1
306+
bak_ib_logfile2
307+
bak_ibdata1
308+
bak_ibdata2
309+
bak_undo001
310+
bak_undo002
311+
bak_undo003
312+
ib_buffer_pool
313+
ib_logfile0
314+
ib_logfile1
315+
ib_logfile2
316+
ibdata1
317+
ibdata2
318+
undo001
319+
undo002
320+
undo003
269321
# 11. With ibdata*, without ib_logfile1
270322
bak_ib_logfile0
271323
bak_ib_logfile1
@@ -280,11 +332,14 @@ ib_logfile0
280332
ib_logfile2
281333
ibdata1
282334
ibdata2
283-
my.cnf
284-
my_restart.err
285335
undo001
286336
undo002
287337
undo003
338+
SELECT * FROM INFORMATION_SCHEMA.ENGINES
339+
WHERE engine = 'innodb'
340+
AND support IN ('YES', 'DEFAULT', 'ENABLED');
341+
ENGINE SUPPORT COMMENT TRANSACTIONS XA SAVEPOINTS
342+
FOUND /Only one log file found/ in mysqld.1.err
288343
bak_ib_logfile0
289344
bak_ib_logfile1
290345
bak_ib_logfile2
@@ -298,8 +353,6 @@ ib_logfile0
298353
ib_logfile2
299354
ibdata1
300355
ibdata2
301-
my.cnf
302-
my_restart.err
303356
undo001
304357
undo002
305358
undo003
@@ -317,11 +370,15 @@ ib_logfile0
317370
ib_logfile1
318371
ibdata1
319372
ibdata2
320-
my.cnf
321-
my_restart.err
322373
undo001
323374
undo002
324375
undo003
376+
SELECT COUNT(*) `1` FROM INFORMATION_SCHEMA.ENGINES
377+
WHERE engine='innodb'
378+
AND support IN ('YES', 'DEFAULT', 'ENABLED');
379+
1
380+
1
381+
FOUND /Resizing redo log from 2\*\d+ to 3\*\d+ pages, LSN=\d+/ in mysqld.1.err
325382
# Cleanup
326383
bak_ib_logfile0
327384
bak_ib_logfile1
@@ -337,8 +394,6 @@ ib_logfile1
337394
ib_logfile2
338395
ibdata1
339396
ibdata2
340-
my.cnf
341-
my_restart.err
342397
undo001
343398
undo002
344399
undo003

0 commit comments

Comments
 (0)