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

safety for upgrades (innodb) and packaging

Details

    Description

      Outdated notes from zulip chat with marko;

      Regarding package upgrades:

      • upgrade from 10.2 or earlier should use innodb_fast_shutdown=0 (or better, SET GLOBAL innodb_max_purge_lag_wait=0, implemented in MDEV-16952) to avoid hitting MDEV-15912

      to implement in rpm/deb packaging scripts.

      Update by marko:
      MDEV-15912 was fixed by refusing to start up InnoDB in case the pre-10.3 format undo logs are not empty. It turns out that a clean shutdown (innodb_fast_shutdown=1) always guaranteed this; in some upgrade tests we had to jump through hoops to end up with nonempty undo logs and empty redo log. With MariaDB (thanks to MDEV-12289) there should never have been a need to issue a slow shutdown (innodb_fast_shutdown=0) before upgrading.

      Attachments

        Issue Links

          Activity

            danblack Daniel Black created issue -
            danblack Daniel Black made changes -
            Field Original Value New Value
            marko Marko Mäkelä made changes -
            Description Notes from zulip chat with [~marko];

            Regarding package upgrades:

            * upgrade from 10.2 or earlier should use innodb_fast_shutdown=0 to avoid to avoid hitting MDEV-15912
            * innodb_fast_shutdown=0 should instigated always before upgrade/(and removal) in prepartion for MDEV-11634
            * this may be really slow (hours), would recovery be hours otherwise? (alternate - yet to be invented purge wait only)
            * if corrupt change buffer this may not complete (MDEV-20934)

            to implement in rpm/deb packaging scripts.
            Notes from zulip chat with [~marko];

            Regarding package upgrades:

            * upgrade from 10.2 or earlier should use {{innodb_fast_shutdown=0}} (or better, {{SET GLOBAL innodb_max_purge_lag_wait=0}}, implemented in MDEV-16952) to avoid hitting MDEV-15912

            to implement in rpm/deb packaging scripts.
            otto Otto Kekäläinen made changes -
            greenman Ian Gilfillan made changes -
            marko Marko Mäkelä made changes -
            Assignee Daniel Black [ danblack ]
            danblack Daniel Black made changes -
            Assignee Daniel Black [ danblack ]
            danblack Daniel Black made changes -
            Assignee Tuukka Pasanen [ JIRAUSER49166 ]
            elenst Elena Stepanova made changes -
            Labels need_feedback
            wlad Vladislav Vaintroub made changes -
            marko Marko Mäkelä made changes -
            Description Notes from zulip chat with [~marko];

            Regarding package upgrades:

            * upgrade from 10.2 or earlier should use {{innodb_fast_shutdown=0}} (or better, {{SET GLOBAL innodb_max_purge_lag_wait=0}}, implemented in MDEV-16952) to avoid hitting MDEV-15912

            to implement in rpm/deb packaging scripts.
            *Outdated* notes from zulip chat with [~marko];
            {quote}
            Regarding package upgrades:

            * upgrade from 10.2 or earlier should use {{innodb_fast_shutdown=0}} (or better, {{SET GLOBAL innodb_max_purge_lag_wait=0}}, implemented in MDEV-16952) to avoid hitting MDEV-15912

            to implement in rpm/deb packaging scripts.
            {quote}
            Update by [~marko]:
            MDEV-15912 was fixed by refusing to start up InnoDB in case the pre-10.3 format undo logs are not empty. It turns out that a clean shutdown ({{innodb_fast_shutdown=1}}) always guaranteed this; in some upgrade tests we had to jump through hoops to end up with nonempty undo logs and empty redo log. With MariaDB (thanks to MDEV-12289) there should never have been a need to issue a slow shutdown ({{innodb_fast_shutdown=0}}) before upgrading.
            serg Sergei Golubchik made changes -
            Fix Version/s 10.5 [ 23123 ]
            Fix Version/s 10.6 [ 24028 ]
            serg Sergei Golubchik made changes -
            Labels need_feedback
            serg Sergei Golubchik made changes -
            Workflow MariaDB v3 [ 113652 ] MariaDB v4 [ 142257 ]
            illuusio Tuukka Pasanen made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            illuusio Tuukka Pasanen made changes -
            Status In Progress [ 3 ] Stalled [ 10000 ]
            marko Marko Mäkelä made changes -
            illuusio Tuukka Pasanen made changes -
            issue.field.resolutiondate 2023-01-23 09:28:43.0 2023-01-23 09:28:43.089
            illuusio Tuukka Pasanen made changes -
            Fix Version/s N/A [ 14700 ]
            Fix Version/s 10.5 [ 23123 ]
            Fix Version/s 10.6 [ 24028 ]
            Resolution Fixed [ 1 ]
            Status Stalled [ 10000 ] Closed [ 6 ]
            danblack Daniel Black made changes -
            marko Marko Mäkelä made changes -

            People

              illuusio Tuukka Pasanen
              danblack Daniel Black
              Votes:
              1 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

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