[MDEV-30133] MariaDB startup does not validate plugin-wsrep-provider when wsrep_mode=off or wsrep_provider is not set Created: 2022-11-30  Updated: 2023-02-14  Resolved: 2022-12-19

Status: Closed
Project: MariaDB Server
Component/s: Galera
Affects Version/s: 10.11
Fix Version/s: N/A

Type: Bug Priority: Major
Reporter: Ramesh Sivaraman Assignee: Jan Lindström (Inactive)
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Problem/Incident
causes MDEV-30318 galera error messages in mariadb log ... Closed
Relates
relates to MDEV-22570 Split wsrep_provider_options in sever... Closed

 Description   

MariaDB startup does not validate plugin-wsrep-provider when wsrep_on=off or wsrep_provider is not set.
Server should not allow to set new variable plugin-wsrep-provider if wsrep_on==off or when wsrep_provider is not set.

$ /test/mtest/GAL_MD281122-mariadb-10.11.2-linux-x86_64-dbg/bin/mysql -A -uroot -S/test/mtest/GAL_MD281122-mariadb-10.11.2-linux-x86_64-dbg/node1/node1_socket.sock -e "show variables like 'wsrep_on'"
+---------------+-------+
| Variable_name | Value |
+---------------+-------+
| wsrep_on      | OFF   |
+---------------+-------+
$
 
$ grep plugin-wsrep n1.cnf
plugin-wsrep-provider=ON



 Comments   
Comment by Jan Lindström (Inactive) [ 2022-12-16 ]

Fixed on branch : preview-10.11-MDEV-22570-wsrep-provider-options-plugin

I try to do test case but it seems hard as server will not start.

Comment by Jan Lindström (Inactive) [ 2023-01-03 ]

Now you should see message:

2023-01-03 13:55:40 0 [Note] Plugin 'wsrep-provider' is disabled.

Generated at Thu Feb 08 10:13:54 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.