Skip to content

Commit 7128328

Browse files
committed
Remove a work-around for MDEV-11689.
Also, work around MDEV-11948 by disabling native asynchronous I/O.
1 parent 1293e5e commit 7128328

File tree

1 file changed

+17
-16
lines changed

1 file changed

+17
-16
lines changed

mysql-test/suite/innodb/t/log_file.test

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,19 @@ innodb_data_home_dir = $ENV{bugdir}
2828
datadir = $ENV{bugdir}
2929
secure_file_priv=
3030
skip_aria
31-
#core_file # MDEV-11689 FIXME: add this back, and remove all ,134 below
31+
core_file
3232
innodb_data_file_path = ibdata1:10M;ibdata2:10M:autoextend
3333
innodb_undo_logs = 20
3434
innodb_undo_tablespaces = 3
3535
innodb_log_files_in_group = 3
36+
skip_innodb_use_native_aio # MDEV-11948 CentOS 5 fails to write ib_logfile101
3637
";
3738
close(OUT);
3839
EOF
3940

4041
--echo # Start mysqld without the possibility to create innodb_undo_tablespaces
4142
--mkdir $bugdir/undo002
42-
--error 1,134
43+
--error 1
4344
--exec $MYSQLD $args
4445
let SEARCH_PATTERN=\[ERROR\] InnoDB: Could not create undo tablespace '.*undo002';
4546
--source include/search_pattern_in_file.inc
@@ -57,7 +58,7 @@ let SEARCH_PATTERN=\[ERROR\] Aborting;
5758
--list_files $bugdir
5859

5960
--echo # Start mysqld with non existent innodb_log_group_home_dir
60-
--error 1,134
61+
--error 1
6162
--exec $MYSQLD $args --innodb_log_group_home_dir=/path/to/non-existent/
6263
let SEARCH_PATTERN=File .path.to.non-existent.*ib_logfile101: 'create' returned OS error \d+;
6364
--source include/search_pattern_in_file.inc
@@ -73,7 +74,7 @@ let SEARCH_PATTERN=\[ERROR\] Aborting;
7374
# complaining about mysql.* tables. This is sufficient for testing
7475
# missing tablespaces.
7576
--echo # Start mysqld to create tablespaces according to my.cnf
76-
--error 2,134
77+
--error 2
7778
--exec $MYSQLD $args --skip-grant-tables --innodb-unknown-parameter
7879
let SEARCH_PATTERN=unknown option '--innodb-unknown-parameter';
7980
--source include/search_pattern_in_file.inc
@@ -92,7 +93,7 @@ let SEARCH_PATTERN=\[ERROR\] Aborting;
9293

9394
--echo # 1. With ibdata2, Without ibdata1
9495
--remove_file $bugdir/ibdata1
95-
--error 1,134
96+
--error 1
9697
--exec $MYSQLD $args
9798
let SEARCH_PATTERN=The innodb_system data file 'ibdata1' was not found but one of the other data files 'ibdata2' exists;
9899
--source include/search_pattern_in_file.inc
@@ -104,7 +105,7 @@ let SEARCH_PATTERN=\[ERROR\] Aborting;
104105

105106
--echo # 2. With ibdata1, without ibdata2
106107
--remove_file $bugdir/ibdata2
107-
--error 1,134
108+
--error 1
108109
--exec $MYSQLD $args
109110
let SEARCH_PATTERN=Tablespace size stored in header is \d+ pages, but;
110111
--source include/search_pattern_in_file.inc
@@ -118,7 +119,7 @@ let SEARCH_PATTERN=\[ERROR\] Aborting;
118119
--remove_file $bugdir/ibdata1
119120
--remove_file $bugdir/ibdata2
120121
--list_files $bugdir
121-
--error 1,134
122+
--error 1
122123
--exec $MYSQLD $args
123124
let SEARCH_PATTERN=undo tablespace .*undo001.* exists\. Creating system tablespace with existing undo tablespaces is not supported\. Please delete all undo tablespaces before creating new system tablespace\.;
124125
--source include/search_pattern_in_file.inc
@@ -132,7 +133,7 @@ let SEARCH_PATTERN=\[ERROR\] Aborting;
132133
--remove_files_wildcard $bugdir ibdata*
133134
--remove_files_wildcard $bugdir ib_logfile*
134135
--list_files $bugdir
135-
--error 1,134
136+
--error 1
136137
--exec $MYSQLD $args
137138
let SEARCH_PATTERN=undo tablespace .*undo001.* exists\. Creating system tablespace with existing undo tablespaces is not supported\. Please delete all undo tablespaces before creating new system tablespace\.;
138139
--source include/search_pattern_in_file.inc
@@ -148,7 +149,7 @@ let SEARCH_PATTERN=\[ERROR\] Aborting;
148149
--remove_files_wildcard $bugdir ib_logfile*
149150
--remove_file $bugdir/undo002
150151
--list_files $bugdir
151-
--error 1,134
152+
--error 1
152153
--exec $MYSQLD $args
153154
let SEARCH_PATTERN=undo tablespace .*undo001.* exists\. Creating system tablespace with existing undo tablespaces is not supported\. Please delete all undo tablespaces before creating new system tablespace\.;
154155
--source include/search_pattern_in_file.inc
@@ -165,7 +166,7 @@ let SEARCH_PATTERN=\[ERROR\] Aborting;
165166
--remove_file $bugdir/undo001
166167
--remove_file $bugdir/undo002
167168
--list_files $bugdir
168-
--error 1,134
169+
--error 1
169170
--exec $MYSQLD $args
170171
let SEARCH_PATTERN=undo tablespace .*undo003.* exists\. Creating system tablespace with existing undo tablespaces is not supported\. Please delete all undo tablespaces before creating new system tablespace\.;
171172
--source include/search_pattern_in_file.inc
@@ -178,7 +179,7 @@ let SEARCH_PATTERN=\[ERROR\] Aborting;
178179
--echo # 7. With ibdata files & Without undo002
179180
--remove_file $bugdir/undo002
180181
--list_files $bugdir
181-
--error 1,134
182+
--error 1
182183
--exec $MYSQLD $args
183184
let SEARCH_PATTERN=Expected to open 3 undo tablespaces but was able;
184185
--source include/search_pattern_in_file.inc
@@ -193,7 +194,7 @@ let SEARCH_PATTERN=\[ERROR\] Aborting;
193194
--remove_file $bugdir/undo001
194195
--remove_file $bugdir/undo002
195196
--list_files $bugdir
196-
--error 1,134
197+
--error 1
197198
--exec $MYSQLD $args
198199
let SEARCH_PATTERN=Expected to open 3 undo tablespaces but was able;
199200
--source include/search_pattern_in_file.inc
@@ -210,7 +211,7 @@ let SEARCH_PATTERN=\[ERROR\] Aborting;
210211
--remove_files_wildcard $bugdir undo00*
211212
--remove_file $bugdir/ib_logfile1
212213
--list_files $bugdir
213-
--error 1,134
214+
--error 1
214215
--exec $MYSQLD $args
215216
let SEARCH_PATTERN=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\.;
216217
--source include/search_pattern_in_file.inc
@@ -224,7 +225,7 @@ let SEARCH_PATTERN=\[ERROR\] Aborting;
224225
#--remove_file $bugdir/ib_logfile0
225226
# The below would start the server. Since we cannot start a parallel
226227
# server, do not test the below case
227-
#--error 1,134
228+
#--error 1
228229
#--exec $MYSQLD $args
229230

230231
# clean up & Restore
@@ -233,7 +234,7 @@ let SEARCH_PATTERN=\[ERROR\] Aborting;
233234
--echo # 11. With ibdata*, without ib_logfile1
234235
--remove_file $bugdir/ib_logfile1
235236
--list_files $bugdir
236-
--error 1,134
237+
--error 1
237238
--exec $MYSQLD $args
238239
let SEARCH_PATTERN=Only one log file found;
239240
--source include/search_pattern_in_file.inc
@@ -246,7 +247,7 @@ let SEARCH_PATTERN=\[ERROR\] Aborting;
246247
--echo # 12. With ibdata*, without ib_logfile2
247248
--remove_file $bugdir/ib_logfile2
248249
--list_files $bugdir
249-
--error 1,134
250+
--error 1
250251
--exec $MYSQLD $args
251252
let SEARCH_PATTERN=Resizing redo log from \d+\*\d+ to \d+\*\d+ pages, LSN=\d+;
252253
--source include/search_pattern_in_file.inc

0 commit comments

Comments
 (0)