Skip to content

Commit bc387ba

Browse files
author
Marko Mäkelä
committed
Bug#22923426 LOG_FILE_SIZE_1 FAILS TO REPORT INNODB: CANNOT RESIZE LOG FILES IN READ-ONLY
The InnoDB change buffer is deleted lazily in a background task. If a previously completed test has caused something to remain in the InnoDB change buffer on the server instance, restarting the server with --innodb-read-only would be refused with an unexpected error message: "Change buffer must be empty when --innodb-read-only is set." This WL#6494 test is expecting another error message, for InnoDB refusing to resize the InnoDB redo logs in read-only mode. The test failed to initiate a slow shutdown (forcing a change buffer merge) before restarting the server in --innodb-read-only mode. Reviewed-by: Vinay Fisrekar <[email protected]>
1 parent 88bc51a commit bc387ba

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

mysql-test/suite/innodb/r/innodb-log-file-size-1.result

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ id LEFT(bfield,20)
153153
21 aaaaaaaaaaaaaaaaaaaa
154154
22 bbbbbbbbbbbbbbbbbbbb
155155
23 cccccccccccccccccccc
156+
SET GLOBAL innodb_fast_shutdown=0;
156157
"test misc 1"
157158
"test misc 2"
158159
"test misc 3"

mysql-test/suite/innodb/t/innodb-log-file-size-1.test

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ let SEARCH_FILE= $MYSQLTEST_VARDIR/log/my_restart.err;
198198
let $args=--loose-console > $SEARCH_FILE 2>&1;
199199

200200
# Stop the server
201+
SET GLOBAL innodb_fast_shutdown=0;
201202
let $restart_file= $MYSQLTEST_VARDIR/tmp/mysqld.1.expect;
202203
--exec echo "wait" > $restart_file
203204
--shutdown_server

0 commit comments

Comments
 (0)