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:
23
mysql-test/suite/innodb/t/log_buffer_size.test
Normal file
23
mysql-test/suite/innodb/t/log_buffer_size.test
Normal 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
|
Reference in New Issue
Block a user