[MDEV-30499] mariadb in-server upgrade Created: 2023-01-29 Updated: 2023-07-28 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | None |
| Fix Version/s: | 11.1 |
| Type: | Task | Priority: | Major |
| Reporter: | Daniel Black | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 3 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||||||||||||||||||||||||||
| Description |
|
The competing requirements around mariadb-upgrade make the current solution undesirable:
So ideally:
|
| Comments |
| Comment by Christian Gonzalez [ 2023-03-07 ] |
|
Is there any update on this issue? I think this can help to improve the upgrade process reliability. Knowing that the server itself will take care of updating the DB tables will make the upgrade process more simpler i.e less prone to errors, specially in automated environments when the upgrade process is automated and it might be harder to catch unexpected errors. Also, if some extra hands are needed I could lock some time to start working on this. |
| Comment by Otto Kekäläinen [ 2023-03-26 ] |
|
I don't see any drawbacks with the server doing the upgrade automatically. The server startup speed will be fast if the server check the existence of /var/lib/mysql/mariadb-upgrade-info file on startup and based on its contents decides to attempt automatic upgrade, as such a file check sub-millisecond operation. In rare cases when a DBA has a use case to not do it, they can use the auto_upgrade=0 config or --skip-auto-upgrade. The upside however is huge: When the server does the upgrade by itself it will be much more reliable, as it is very hard to end up having none or multiple mariadb-upgrades running in parallel. That whole category of bugs would go away. This architecture would also greatly simplify the SysV init and systemd startup files as they don't need to check for any upgrades anymore. Most likely also the deb and rpm install/upgrade maintainer scripts could be simplified after this. |
| Comment by Otto Kekäläinen [ 2023-07-23 ] |
|
If we had this automatic upgrade inside mariadbd, bugs like I am definitely in favor of having automatic in-server upgrade on every mariadbd start. |
| Comment by Andrew Hutchings [ 2023-07-28 ] |
|
I believe monty was not keen on this feature being implemented. I don't remember the details, just that there was a discussion over it between him and danblack. |
| Comment by Daniel Black [ 2023-07-28 ] |
|
Lucky there's a documented discussion with a user interest and valid points around function and testing that can supersede that. |