[MDEV-6173] TokuDB cannot start after upgrade if the previous version was not shut down in a clean way Created: 2014-04-25  Updated: 2014-10-05  Resolved: 2014-10-05

Status: Closed
Project: MariaDB Server
Component/s: Storage Engine - TokuDB
Affects Version/s: 5.5.37, 10.0.10
Fix Version/s: 5.5.40, 10.0.14

Type: Bug Priority: Critical
Reporter: Elena Stepanova Assignee: Rich Prohaska
Resolution: Fixed Votes: 0
Labels: tokudb, upstream

Issue Links:
Blocks
blocks MDEV-6165 TokuDB fails to load, even when follo... Closed
Sub-Tasks:
Key
Summary
Type
Status
Assignee
MDEV-6174 Document the TokuDB requirement for a... Technical task Closed Ian Gilfillan  

 Description   

If before or upon an upgrade the server was not shut down properly, the upgraded TokuDB cannot start:

Cannot upgrade TokuDB version 24 database. Previous improper shutdown detected.

No race conditions or special workflow are required to render the engine broken this way, just usual forced termination.

There is no proper workaround for it:

<prohaska7> tokudb will not load if its recovery log is an old version that did not shutdown cleanly.
<prohaska7> bring up the old version (probably with clients locked out) and shut it down. this will write a nice shutdown entry into the tokudb recovery log. then bring up the new version (which should see the old log with the nice shutdown and proceed)
<prohaska7> one could create a new instance of the old version, put the tokudb files in its data directory, bring it up and shut it down. then copy the tokudb log files to the new version and bring it up.
<prohaska7> clean shutdown is required.

There was an actual user's bug report about it already: MDEV-6165 , so the issue is not hypothetical.



 Comments   
Comment by Sergei Golubchik [ 2014-05-27 ]

Rich, what should we do with this issue? Close as "won't fix" ? Or you're considering fixing it? I wasn't able to find a corresponding entry in your github issues.

Comment by Rich Prohaska [ 2014-05-27 ]

We plan on trying to support dirty shutdown + upgrade in 7.1.8, perhaps by sept 2014.

Comment by Ian Gilfillan [ 2014-06-01 ]

This has now been documented in the TokuDB section on https://mariadb.com/kb/en/tokudb/ and https://mariadb.com/kb/en/how-to-enable-tokudb-in-mariadb/

Comment by Rich Prohaska [ 2014-10-03 ]

MariaDB 10.0.14 includes tokudb 7.5.0 which supports tokudb file formats from versions >= tokudb 7.1.5.

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