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

Feature request: change how mariadb-server package tries to prevent unintended major upgrades

    XMLWordPrintable

Details

    Description

      Right now our mariadb-server packages have a pre-upgrade hook that prevents a major version upgrade from happening unintendedly, forcing users to uninstall the package, and then re-install to get the higher version package installed and the upgrade performed.

      The reasoning is that a binary upgrade is a one-way action and can't easily be reverted once data files have changed, as older major releases may not understand newer file format details.

      The "uninstall then reinstall" workflow is cumbersome though, e.g. as other packages may depend on the mariadb-server package and get removed along with it.

      So I'd like to suggest an additional alternative approach: have the pre-upgrade hook also check for a specific marker file, e.g. /var/lib/mysql/major-upgrade-OK, and if this exists and was created not-too-long ago (an hour? a day?), and if that exists: proceed with the major version upgrade anyway, then remove the file in the post-upgrade hook on successful upgrade.

      That IMHO makes the upgrade intention even more obvious, and at the same time the process less cumbersome.

      Attachments

        Activity

          People

            Unassigned Unassigned
            hholzgra Hartmut Holzgraefe
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:

              Git Integration

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