Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
10.1(EOL)
-
None
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 hittingMDEV-15912to 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
- relates to
-
MDEV-23321 debian upgrade shouldn't start previously stopped services
-
- Open
-
-
MDEV-25793 Update upgrading documentation
-
- Closed
-
-
MDEV-26717 mysql_upgrade_service/mariadb-upgrade-service - avoid slow shutdown if not necessary
-
- Closed
-
-
MDEV-29694 Remove the InnoDB change buffer
-
- Closed
-
-
MDEV-30755 slow shutdown on uninstall
-
- Open
-
-
MDEV-33364 pre-uninstall scriptlets should use slow innodb shutdown for upgrades
-
- Closed
-
MDEV-15912is now fixed, and InnoDB will refuse to start up if the data directory is from an earlier version than MariaDB 10.3 that had not been shut down in a clean fashion. Hence, we now should have a reliable post-upgrade check that will prevent bad things from happening. But we still need a pre-upgrade check for smooth upgrades from 10.2 or earlier. I genuinely do not know if this needs to be addressed by packaging, or whether documenting this should be enough. Maybe the current scripts in (say) Debian are adequate for the masses who might be running a mostly idle instance of MariaDB. Those who are hosting valuable data should think twice before blindly executing something like sudo apt dist-upgrade.