Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-6173

TokuDB cannot start after upgrade if the previous version was not shut down in a clean way




      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.


        Issue Links

          There are no Sub-Tasks for this issue.



              prohaska7 Rich Prohaska
              elenst Elena Stepanova
              0 Vote for this issue
              4 Start watching this issue



                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.