[MDEV-21258] Can't uninstall plugin if the library file doesn't exist Created: 2019-12-09 Updated: 2021-04-19 Resolved: 2020-07-29 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Plugins |
| Affects Version/s: | 10.1, 10.4.10, 10.2, 10.3 |
| Fix Version/s: | 10.2.33, 10.3.24, 10.4.14, 10.5.5 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Hartmut Holzgraefe | Assignee: | Oleksandr Byelkin |
| Resolution: | Fixed | Votes: | 1 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||||||
| Description |
|
When an installed plugin can't be loaded at startup as its .so file can't be found anymore, e.g. after switching form MySQL to MariaDB with a MySQL-only plugin installed, or when having a deprecated plugin still installed and the .so removed due to a version upgrade, the error log will contain warnings about not being able to load the plugin, but the plugin can't be removed with UNINSTALL PLUGIN or UNINSTALL SONAME. It can only be removed by deleting the related row in the mysql.plugin table direrctly with DELETE FROM mysql.plugin WHERE name='...' It should be able to remove a plugin with UNINSTALL even if it couldn't initialize for whatever reason, including missing .so file |
| Comments |
| Comment by Sergei Golubchik [ 2020-04-01 ] | |||||||||||||||||||||
|
I agree that UINSTALL PLUGIN should work. Just like DROP TABLE works if the table is corrupted. | |||||||||||||||||||||
| Comment by Hartmut Holzgraefe [ 2020-07-20 ] | |||||||||||||||||||||
|
Same problem for DROP FUNCTION if the implementation .so is missing... Should I add an extra MDEV for that, or is mentioning it here sufficient? (Also I seem to remember some upcoming change to UDF loading anyway, away from CREATE/DROP FUNCTION towards INSTALL/UNINSTALL PLUGIN ... can't find any reference to this anymore though. Was that planned for 10.6?) | |||||||||||||||||||||
| Comment by Oleksandr Byelkin [ 2020-07-27 ] | |||||||||||||||||||||
|
hholzgra Is it only 10.4 problem? (taking into account that you want to attach UDF here) | |||||||||||||||||||||
| Comment by Oleksandr Byelkin [ 2020-07-27 ] | |||||||||||||||||||||
|
I see UNINSTALL PLUGIN even in 10.1, and doubts that there is no such problem... | |||||||||||||||||||||
| Comment by Oleksandr Byelkin [ 2020-07-28 ] | |||||||||||||||||||||
|
Tking into account TTL of 10.1 I think it has no sens to fix it there. | |||||||||||||||||||||
| Comment by Oleksandr Byelkin [ 2020-07-28 ] | |||||||||||||||||||||
|
Test suite for this bug:
| |||||||||||||||||||||
| Comment by Hartmut Holzgraefe [ 2020-07-29 ] | |||||||||||||||||||||
|
UDF related one is |