[MDEV-6257] MariaDB 5.5 fails to start with 10.0 InnoDB log files Created: 2014-05-21  Updated: 2014-10-11  Resolved: 2014-05-22

Status: Closed
Project: MariaDB Server
Component/s: Storage Engine - InnoDB, Storage Engine - XtraDB
Affects Version/s: 5.5.37
Fix Version/s: 5.5.38

Type: Bug Priority: Minor
Reporter: Jan Lindström (Inactive) Assignee: Jan Lindström (Inactive)
Resolution: Fixed Votes: 0
Labels: innodb


 Description   

When default log file size is used database created using 10.0 fails to start using 5.5 on following message:

nnoDB: Error: log file ./ib_logfile0 is of different size 0 50331648 bytes
InnoDB: than specified in the .cnf file 0 5242880 bytes!
140521 12:24:53 [ERROR] Plugin 'InnoDB' init function returned error.
140521 12:24:53 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
140521 12:24:53 [ERROR] Unknown/unsupported storage engine: InnoDB
140521 12:24:53 [ERROR] Aborting

This is because in 10.0 by default log file size is 48M when 5.5 it is 5M.



 Comments   
Comment by Jan Lindström (Inactive) [ 2014-05-21 ]

------------------------------------------------------------
revno: 4191
committer: Jan Lindström <jplindst@mariadb.org>
branch nick: 5.5
timestamp: Wed 2014-05-21 13:14:43 +0300
message:
MDEV-6257: MariaDB 5.5 fails to start with 10.0 InnoDB log files

Analysis: By default 10.0 creates 48M log files and 5.5 assumes they
are 5M.

Fix: Remove the error and do size comparison later.

Comment by Nirbhay Choubey (Inactive) [ 2014-05-21 ]

Same happens on trying to start mysql-5.5 with mysql-5.6 innodb log files.

Comment by Jan Lindström (Inactive) [ 2014-05-21 ]

This fix should solve that also, but not tested.

Comment by Axel Schwenke [ 2014-05-21 ]

The default log size has changed from 5.5 to 10.0. It's just one of several incompatible changes. The workaround is easy - put the log file size into my.cnf.

I think the bug bad behavior is, that with no log size set in my.cnf, InnoDB forces a default size. Instead it should just look at the existing logs to find out which size they are. I don't think this is a genuine bug but rather a feature request.

Comment by Jan Lindström (Inactive) [ 2014-05-22 ]

You now may open log files with different innodb_log_file_size setup. This seems not be protected. Lets get back to drawing board.

Comment by Jan Lindström (Inactive) [ 2014-05-22 ]

revno: 4192
committer: Jan Lindström <jplindst@mariadb.org>
branch nick: 5.5
timestamp: Thu 2014-05-22 16:20:56 +0300
message:
MDEV-6257: MariaDB 5.5 fails to start with 10.0 InnoDB log files

Analysis: Can't disable the error message because you may get database
started with incorrect log file size.

Fix: Thus only improve the error message to give more information
to users.

Comment by Nirbhay Choubey (Inactive) [ 2014-06-20 ]

As Axel suggested, can't we make server/innodb to derive the log file size and use it, instead of just aborting?

Comment by Daniel Black [ 2014-10-10 ]

And/or if its a clean startup move the 5M ones out of the way and create them.

innodb_log_files_in_group could be derived too.

Generated at Thu Feb 08 07:10:31 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.