Bug #79754 uninstall plugin warning
Submitted: 23 Dec 2015 8:53 Modified: 29 Dec 2015 3:07
Reporter: yx jiang Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Server: Errors Severity:S3 (Non-critical)
Version:5.6.21, 5.6.28 OS:CentOS (64)
Assigned to: CPU Architecture:Any

[23 Dec 2015 8:53] yx jiang
Description:
function mysql_uninstall_plugin calling mysql_audit_acquire_plugins will cause plugin's ref_count added by 1.

the following code seems to be true

if (plugin->ref_count)
    push_warning(thd, Sql_condition::WARN_LEVEL_WARN,
                 WARN_PLUGIN_BUSY, ER(WARN_PLUGIN_BUSY));

so warning will be generated when uninstall plugin

How to repeat:
install/uninstall a customer audit plugin

Suggested fix:
n/a
[23 Dec 2015 9:31] Umesh Shastry
Hello jiang,

Thank you for the report.
I'm not sure whether this is intended behavior but observed this with 5.6.28 build.

Thanks,
Umesh
[29 Dec 2015 1:50] zhai weixiang
duplicate of bug#72217 ?
[29 Dec 2015 3:07] yx jiang
i believe this is the root cause of bug #72217