Description:
I install the dragnet logging and things work fine.
I want to uninstall this as I no longer need it and this is what I see:
myuser@myhost [(none)]> UNINSTALL COMPONENT 'file://component_log_filter_dragnet';
ERROR 3540 (HY000): Unregistration of service implementation 'log_service.log_filter_dragnet' provided by component 'mysql:log_filter_dragnet' failed during unloading of the component.
I can do:
myuser@myhost [(none)]> set global log_error_services = DEFAULT;
Query OK, 0 rows affected (0.00 sec)
myuser@myhost [(none)]> UNINSTALL COMPONENT 'file://component_log_filter_dragnet';
Query OK, 0 rows affected (0.01 sec)
but I feel that the error report should give a better idea of what the problem is and how the user can achieve the desired goal.
How to repeat:
see above
If you use components more frequently which I understand is the plan then this sort of issue will come up more frequently.
Suggested fix:
Suggestions:
* create a generic component error message which explains when you uninstall a component which one depends on it (so we can uninstall it first or reconfigure it to remove the dependency)
* document the uninstall process has dependencies and must be done the right way
* provide a way to query via SQL for component dependencies so we can script this whole procedure
Suggested specific error message:
* Unable to uninstall component xxxxx: please adjust log_error_services and remove the dragnet whatever configuration to remove this component