mariadb/mysql-test/suite/galera/t/galera_provider_options_long.test
Jan Lindström bdfc7192b3 MDEV-36843 : Galera tests fail if wsrep_provider_options is too long (> 2k)
Galera provider options contains many options and several directory names and
file names that could lead situation where wsrep_provider_options string
is longer than 2k. Many tests set few new options required by test
and then restore wsrep_provider_options to original value. This restoring
wsrep_provider_options string to original value then fails because
of common limit for all charptr variables (2k).

Fix is to increase common limit for all charptr variables to 4kb.

Signed-off-by: Julius Goryavsky <julius.goryavsky@mariadb.com>
2025-08-15 02:20:40 +02:00

28 lines
738 B
Text

--source include/galera_cluster.inc
--source include/have_ssl_communication.inc
--source include/have_openssl.inc
--let $wsrep_provider_options_orig = `SELECT @@wsrep_provider_options`
--echo #
--echo # wsrep_provider_options should be already > 2k length
--echo #
--disable_query_log
--eval SELECT LENGTH('$wsrep_provider_options_orig') > 2000 AS_EXPECT_1;
--enable_query_log
--echo #
--echo # Setting single value should pass
--echo #
SET GLOBAL wsrep_provider_options='pc.ignore_sb=false;pc.weight=2';
--echo #
--echo # This failed before change with ER_WRONG_STRING_LENGTH
--echo #
--disable_query_log
--eval SET GLOBAL wsrep_provider_options = "$wsrep_provider_options_orig"
--enable_query_log
--source include/galera_end.inc