Details
Description
When there are multiple requests to load the same plugin, e.g. both a "plugin_load_add" in the config file and an entry in the mysql.plugin table via "INSTALL PLUGIN", an error message is logged, e.g.:
[ERROR] mariadbd: Plugin 'unix_socket' is already installed.
IMHO this should only be a warning, not an error, as initial loading of the plugin was successful, so no real damage is done by the 2nd loading attempt in most cases.
The exception would be an attempt to load a different version of the same plugin library, but even then a warning should be sufficient IMHO, especially as even the current error output does not terminate server startup.
So both a warning and the current error would go unnoticed if a user doesn't bother to check the error log output, but the current error messages makes the situation sound much more critical than it actually is.
Attachments
Issue Links
- relates to
-
MDEV-32043 mariadb-upgrade should remove mysql.plugin entries for plugins that became bundled
-
- Closed
-
-
MDEV-7652 More explanatory ERROR and WARNING messages when loading plugins with plugin-load-add that are already registered at mysql.plugin
-
- Closed
-
-
MDEV-32626 Server hangs during startup with plugin_load_add=server_audit when plugin is already loaded with INSTALL SONAME
-
- Closed
-
The implementation in https://github.com/MariaDB/server/pull/2744 also covers this case.
MariaDB [(none)]> install soname 'locales.so';
Query OK, 0 rows affected (0.001 sec)
MariaDB [(none)]> shutdown;
Query OK, 0 rows affected (0.000 sec)
$ sql/mariadbd --no-defaults --datadir=/tmp/${PWD##*/}-datadir --socket=/tmp/${PWD##*/}.sock --plugin-dir=${PWD}/mysql-test/var/plugins/ --verbose --skip-networking --plugin-load-add=locales
2023-10-13 10:07:41 0 [Note] Starting MariaDB 10.4.32-MariaDB source revision 3981e9cb385d435d17772c38504982ae9cf8293b as process 39312
2023-10-13 10:07:41 0 [Note] InnoDB: Using Linux native AIO
2023-10-13 10:07:41 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2023-10-13 10:07:41 0 [Note] InnoDB: Uses event mutexes
2023-10-13 10:07:41 0 [Note] InnoDB: Compressed tables use zlib 1.2.13
2023-10-13 10:07:41 0 [Note] InnoDB: Number of pools: 1
2023-10-13 10:07:41 0 [Note] InnoDB: Using SSE2 crc32 instructions
2023-10-13 10:07:41 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
2023-10-13 10:07:41 0 [Note] InnoDB: Completed initialization of buffer pool
2023-10-13 10:07:41 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
2023-10-13 10:07:41 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2023-10-13 10:07:41 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2023-10-13 10:07:41 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2023-10-13 10:07:41 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
2023-10-13 10:07:41 0 [Note] InnoDB: Waiting for purge to start
2023-10-13 10:07:41 0 [Note] InnoDB: 10.4.32 started; log sequence number 60961; transaction id 20
2023-10-13 10:07:41 0 [Note] InnoDB: Loading buffer pool(s) from /tmp/build-mariadb-server-10.4-datadir/ib_buffer_pool
2023-10-13 10:07:41 0 [Note] Plugin 'FEEDBACK' is disabled.
2023-10-13 10:07:41 0 [Note] InnoDB: Buffer pool(s) load completed at 231013 10:07:41
2023-10-13 10:07:41 0 [Note] mariadbd: Plugin 'LOCALES' already installed
2023-10-13 10:07:41 0 [Note] Reading of all Master_info entries succeeded
2023-10-13 10:07:41 0 [Note] Added new Master_info '' to hash table
2023-10-13 10:07:41 0 [Note] sql/mariadbd: ready for connections.
Version: '10.4.32-MariaDB' socket: '/tmp/build-mariadb-server-10.4.sock' port: 0 Source distribution