More explanatory ERROR and WARNING messages when loading plugins with plugin-load-add that are already registered at mysql.plugin

Description

In case a plugin is loaded with INSTALL SONAME , and the same plug is configured to be loaded at the configuration with plugin-load-add, there are not clear ERROR and WARNING mesages at the error log file.

example:

The messages should give the the reason for the errors
Also, the Warnings are misleading, as in fact the TokuDB plugin is loaded properly
example:

There should be a documentation change with explanation what will happen in this case at some MariaDB KnowledgeBase pages , so far I can list these ones:

https://mariadb.com/kb/en/mariadb/install-plugin/
https://mariadb.com/kb/en/mariadb/plugin-overview/
https://mariadb.com/kb/en/mariadb/enabling-tokudb/

Environment

All

Assignee

Sergey Vojtovich

Reporter

Stoykov

Components

Sprint

None

Fix versions

Affects versions

Priority

Major
Configure