Skip to content

Conversation

@janlindstrom
Copy link
Contributor

…(> 2k)

  • The Jira issue number for this PR is: MDEV-36843

Description

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.

Release Notes

TODO: What should the release notes say about this change?
Include any changed system variables, status variables or behaviour. Optionally list any https://mariadb.com/kb/ pages that need changing.

How can this PR be tested?

TODO: modify the automated test suite to verify that the PR causes MariaDB to behave as intended.
Consult the documentation on "Writing good test cases".

If the changes are not amenable to automated testing, please explain why not and carefully describe how to test manually.

Basing the PR against the correct MariaDB version

  • This is a new feature or a refactoring, and the PR is based against the main branch.
  • [ x] This is a bug fix, and the PR is based against the earliest maintained branch in which the bug can be reproduced.

PR quality check

  • [ x] I checked the CODING_STANDARDS.md file and my PR conforms to this where appropriate.
  • [x ] For any trivial modifications to the PR, I am ok with the reviewer making the changes themselves.

wsrep-debug=1

[mysqld.1]
wsrep_provider_options='socket.ssl=yes;[email protected]_TEST_DIR/std_data/galera-cert.pem;[email protected]_TEST_DIR/std_data/galera-key.pem;repl.causal_read_timeout=PT90S;[email protected].#galera_port;evs.suspect_timeout=PT10S;evs.inactive_timeout=PT30S;evs.install_timeout=PT15S;pc.wait_prim_timeout=PT60S;gcache.size=10M'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does it test the bug? how can you know it'll be above 2K?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test case has --eval SELECT LENGTH('$wsrep_provider_options_orig') > 2000 AS_EXPECT_1;

provider options contain also paths so they are long

@janlindstrom janlindstrom force-pushed the 11.4-MDEV-36843 branch 4 times, most recently from dbd16c6 to 1a39e66 Compare October 17, 2025 09:56
…(> 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.
@janlindstrom janlindstrom merged commit ca7e1a3 into MariaDB:11.4 Oct 17, 2025
17 of 18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Codership Codership Galera

Development

Successfully merging this pull request may close these issues.

3 participants