Skip to content

MDEV-34654 perfschema.relaylog can fail based on the path of the build directory - #5921

Open
Swayam-code wants to merge 2 commits into
MariaDB:11.4from
Swayam-code:codex/mdev-34654-relaylog-paths
Open

Swayam-code wants to merge 2 commits into
MariaDB:11.4from
Swayam-code:codex/mdev-34654-relaylog-paths

Conversation

@Swayam-code

Copy link
Copy Markdown

perfschema.relaylog can select unrelated files when parent directories contain master- or slave-. Match and display normalized basenames, and use misleading datadir names to cover the regression.

Tested all three binlog formats on Linux (11.4.13 and 13.2 Debug) and Windows (13.2 Debug). The 11.4 runs used the 13.2 test client.

MDEV-34654

…d directory

Match and display log basenames after normalizing path separators, so
parent directory names cannot affect file selection or filename output.

Use misleading datadir names to exercise filtering, extraction and
relay-log rotation.

Assisted-by: Codex:GPT-6
@gkodinov gkodinov added the External Contribution All PRs from entities outside of MariaDB Foundation, Corporation, Codership agreements. label Oct 20, 2026
@gkodinov gkodinov self-assigned this Oct 20, 2026

@gkodinov gkodinov left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thank you for your contribution! This is a preliminary review.

LGTM. Please stand by for the final review.


select
substring(file_name, locate("slave-", file_name)) as FILE_NAME,
substring_index(replace(file_name, char(92), "/"), "/", -1) as FILE_NAME,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

nit: you could use "\" here: will make it easier to read. Or at least use the hex code ...

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Fixed in cdbda03: replaced char(92) with 0x5c in the test and matching expected output.

@gkodinov gkodinov assigned bnestere and unassigned gkodinov Oct 20, 2026
@gkodinov
gkodinov requested a review from bnestere October 20, 2026 08:24
Replace char(92) with 0x5c in the path normalization expressions and
matching expected output, as suggested in review.

Assisted-by: Codex:GPT-6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

External Contribution All PRs from entities outside of MariaDB Foundation, Corporation, Codership agreements.

Development

Successfully merging this pull request may close these issues.

3 participants