Skip to content

10.6 mdev 39676#5100

Open
janlindstrom wants to merge 3 commits into
MariaDB:10.6from
mariadb-corporation:10.6-MDEV-39676
Open

10.6 mdev 39676#5100
janlindstrom wants to merge 3 commits into
MariaDB:10.6from
mariadb-corporation:10.6-MDEV-39676

Conversation

@janlindstrom
Copy link
Copy Markdown
Contributor

No description provided.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces character validation for Galera SST-related variables, specifically wsrep_sst_receive_address, wsrep_sst_donor, and wsrep_sst_method, by implementing check_request_str in sql/wsrep_sst.cc. It also updates Galera version strings and protocol versions across several test files and adjusts test scripts to handle platform-specific exit codes for server startup and pkill operations. Feedback indicates that the new validation logic is overly restrictive; both wsrep_sst_receive_address and wsrep_sst_donor should permit empty strings, and wsrep_sst_donor must support comma-separated lists. Furthermore, the test cleanup logic should be updated to allow pkill to return exit code 1 when no matching processes are found.

Comment thread sql/wsrep_sst.cc
Comment thread sql/wsrep_sst.cc Outdated
Comment thread mysql-test/suite/galera/t/galera_sst_mariabackup_encrypt_with_key_server.test Outdated
Comment thread mysql-test/suite/galera/t/galera_var_sst_donor.test
Add verification of wsrep_sst_donor, wsrep_sst_method and
wsrep_sst_receive_address so that they contain only
supported characters. But allow NULL or empty value.
Joiner mariadbd exits when SST is aborted; the exit code varies by
platform (clean 0 on some systems, signalled 134 / 1 on others).

pkill exit code can also vary by platform (clean 0 on some systems,
signalled 1 others).
Copy link
Copy Markdown
Contributor

@hemantdangi-gc hemantdangi-gc left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Copy Markdown
Contributor

@hemantdangi-gc hemantdangi-gc left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Copy Markdown
Contributor

@hemantdangi-gc hemantdangi-gc left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants