1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

MDEV-32364 Server crashes when starting server with high innodb_log_buffer_size

log_t::create(): Return whether the initialisation succeeded.
It may fail if too large an innodb_log_buffer_size is specified.
This commit is contained in:
Marko Mäkelä
2023-10-06 14:16:01 +03:00
parent 0e0a19b9f6
commit 6e9b421f77
6 changed files with 59 additions and 8 deletions

View File

@@ -0,0 +1,23 @@
--source include/have_innodb.inc
--source include/no_valgrind_without_big.inc
# the parameter is only 32-bit on Windows
--source include/not_windows.inc
--disable_query_log
call mtr.add_suppression("\\[Warning\\] option 'innodb-log-buffer-size': unsigned value 1125899906842624 adjusted");
call mtr.add_suppression("InnoDB: Cannot allocate memory; too large innodb_log_buffer_size\\?");
call mtr.add_suppression("\\[ERROR\\] InnoDB: Plugin initialization aborted");
call mtr.add_suppression("\\[ERROR\\] Plugin 'InnoDB' registration as a STORAGE ENGINE failed");
--enable_query_log
--let $restart_parameters= --innodb-log-buffer-size=1125899906842624
--source include/restart_mysqld.inc
SELECT * FROM INFORMATION_SCHEMA.ENGINES WHERE engine = 'innodb'
AND support IN ('YES', 'DEFAULT', 'ENABLED');
--let SEARCH_FILE = $MYSQLTEST_VARDIR/log/mysqld.1.err
--let SEARCH_PATTERN=InnoDB: Cannot allocate memory; too large innodb_log_buffer_size\\?
--source include/search_pattern_in_file.inc
--let $restart_parameters=
--source include/restart_mysqld.inc