Details
Description
Server should always validate the wsrep_mode options when the server starts, currently validation does not always occur
Server is not validating wsrep_mode when wsrep_mode is set with char D. And the server automatically assigned DISALLOW_LOCAL_GTID to wsrep_mode
$ /test/GAL_MD170325-mariadb-10.11.12-linux-x86_64-dbg/bin/mariadbd --defaults-file=/test/GAL_MD170325-mariadb-10.11.12-linux-x86_64-dbg/n1.cnf --wsrep-new-cluster --wsrep_mode=D &
|
[1] 2413094
|
|
$ ps -ef | grep 2413094
|
ramesh 2413094 2447480 0 13:01 pts/2 00:00:00 /test/GAL_MD170325-mariadb-10.11.12-linux-x86_64-dbg/bin/mariadbd --defaults-file=/test/GAL_MD170325-mariadb-10.11.12-linux-x86_64-dbg/n1.cnf --wsrep-new-cluster --wsrep_mode=D
|
|
|
node1:root@localhost> SELECT @@wsrep_mode;
|
+---------------------+
|
| @@wsrep_mode |
|
+---------------------+
|
| DISALLOW_LOCAL_GTID |
|
+---------------------+
|
1 row in set (0.001 sec)
|
|
node1:root@localhost>
|
In this example validation works file. Server validates wsrep_mode when wsrep_mode is set to char B, and server startup fails with an invalid value.
$ /test/GAL_MD170325-mariadb-10.11.12-linux-x86_64-dbg/bin/mariadbd --defaults-file=/test/GAL_MD170325-mariadb-10.11.12-linux-x86_64-dbg/n1.cnf --wsrep-new-cluster --wsrep_mode=B
|
2025-04-09 12:59:39 0 [ERROR] /test/GAL_MD170325-mariadb-10.11.12-linux-x86_64-dbg/bin/mariadbd: Error while setting value 'B' to 'wsrep_mode'
|