[MDEV-25670] mariadb container needs to run mysql_upgrade Created: 2021-05-13 Updated: 2022-01-31 Resolved: 2022-01-29 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Docker |
| Fix Version/s: | 10.2.42, 10.3.33, 10.4.23, 10.5.14, 10.6.6, 10.7.2, 10.8.1 |
| Type: | Task | Priority: | Major |
| Reporter: | Daniel Black | Assignee: | Daniel Black |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||||||||||
| Description |
|
From https://github.com/MariaDB/mariadb-docker/issues/350 Its causing problems for users https://github.com/AzuraCast/docker-azuracast-db/issues/3 If we have a healthcheck ( " the most difficult problem is detection of when it ought to be run because it requires the server to be up before it can run (so it requires the same temporary server logic as the initial bootstrapping), so it isn't reasonable to just run it every time" Maybe a direct inspection of the FRM format in MDEV-23008 |
| Comments |
| Comment by Elena Stepanova [ 2021-06-02 ] |
|
As MDEV-23008 describes, when mysql_upgrade runs, it creates mysql_upgrade_info file in the data directory. The file contains the server version on which mysql_upgrade was run. It may be imperfect (as MDEV-23008 also describes), but it should be sufficient here, as the most arguments from MDEV-23008 don't apply to the use case. |
| Comment by Daniel Black [ 2022-01-28 ] |
|
Prototype https://github.com/MariaDB/mariadb-docker/commit/ad50437313e02c82e3ec902cb1e71f22636c1d3c While debian users might tolerate a two start approach (MDEV-27613), container users only just tolerate this on initialization. So MDEV-27636 is blocking this. There's only on version of mariadbd/mariadb-upgrade in the container. |
| Comment by Daniel Black [ 2022-01-29 ] |
|
Fixed with https://github.com/MariaDB/mariadb-docker/pull/407 as opt in feature. Still a few too many hacks which will be simplified with: Test timeouts due to missing https://github.com/MariaDB/server/commit/6b4f0d782c973bd49ad62a67add36d4773852c3a (released version 10.4+, CI versions 10.5+) |