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

    Details

      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.

        Attachments

          Issue Links

          There are no Sub-Tasks for this issue.

            Activity

              People

              • Assignee:
                prohaska7 Rich Prohaska
                Reporter:
                elenst Elena Stepanova
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: