[MDEV-26231] mysql_upgrade attempts to remove plugins which it failed to install Created: 2021-07-23 Updated: 2023-11-30 |
|
| Status: | In Review |
| Project: | MariaDB Server |
| Component/s: | Scripts & Clients |
| Affects Version/s: | 10.5, 10.6 |
| Fix Version/s: | 10.5, 10.6 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Elena Stepanova | Assignee: | Vicențiu Ciorbaru |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Description |
|
When mysql_upgrade is run on a MySQL datadir with JSON type, it attempts to install type_mysql_json. In reality, it is likely to fail (e.g. due to
|
| Comments |
| Comment by Anel Husakovic [ 2023-11-13 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Hi elenst, | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2023-11-13 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Naturally you can't see the described behavior if the description uses type_mysql_json as an example of a failing plugin and it doesn't fail anymore. This report is not about that, it is about mysql_upgrade not detecting / remembering whether it succeeded at installing something before or not, and trying to uninstall it anyway. So, if somebody can guarantee that no plugin will ever fail to install during mysql_upgrade, then sure, it can be closed on this reason. Another reason to close it could be that it doesn't matter. I can't remember now why it mattered that mysql_upgrade throws an additional error, even a meaningless one. It looks like a cosmetic issue, so I'll decrease the priority. | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Anel Husakovic [ 2023-11-14 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||
|
I have tried to create the verify the test case running the MariaDB mysql_upgrade binary on the MySQL 5.7 data directory.
The same was done on MySQL 8.0, just for testing and noted that caching_sha2_password is missing for tested mariadb and mysql_upgrade clients.
But in order to be sure that no error will be generated I'm suggesting the following patch
Have created PR. | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Vicențiu Ciorbaru [ 2023-11-28 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Review sent. Need aditional input because the current patch doesn't seem to change anything logic wise. |