Skip to content
/ server Public

MDEV-39082 mysql-test: use temp datadir in collect_mysqld_features#4813

Merged
vuvova merged 1 commit intoMariaDB:10.6from
aquilamacedo:mdev-39082-mtr-tempdatadir
Mar 17, 2026
Merged

MDEV-39082 mysql-test: use temp datadir in collect_mysqld_features#4813
vuvova merged 1 commit intoMariaDB:10.6from
aquilamacedo:mdev-39082-mtr-tempdatadir

Conversation

@aquilamacedo
Copy link
Contributor

@aquilamacedo aquilamacedo commented Mar 16, 2026

collect_mysqld_features probes mariadbd with --datadir=., which can
point to the installed mysql-test tree.

During this probe, mariadbd may run the datadir case-sensitivity check
and try to create a *.lower-test file there. This is a bad fit when the
test suite is run from a read-only installed path (for instance, . /usr/share/...).

Use $opt_vardir as the datadir for this probe instead, so it runs in a
writable location and avoids writes into the installed test tree.

Copy link
Member

@grooverdan grooverdan left a comment

Choose a reason for hiding this comment

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

Good. Now if there's feature discovery it will get the lower-case filesystem variables correctly too.

@aquilamacedo
Copy link
Contributor Author

Good. Now if there's feature discovery it will get the lower-case filesystem variables correctly too.

nice, glad this keeps the behavior intact.

@gkodinov gkodinov added the External Contribution All PRs from entities outside of MariaDB Foundation, Corporation, Codership agreements. label Mar 16, 2026
Copy link
Member

@gkodinov gkodinov left a comment

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.

@gkodinov gkodinov force-pushed the mdev-39082-mtr-tempdatadir branch from 8303836 to 7342764 Compare March 16, 2026 08:25
@vuvova
Copy link
Member

vuvova commented Mar 16, 2026

eh, sorry, why not to use simply vardir?

@aquilamacedo aquilamacedo force-pushed the mdev-39082-mtr-tempdatadir branch from 7342764 to 91379d9 Compare March 16, 2026 16:46
Copy link
Member

@gkodinov gkodinov left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks.

@gkodinov gkodinov force-pushed the mdev-39082-mtr-tempdatadir branch from 91379d9 to 139bdbf Compare March 17, 2026 08:52
collect_mysqld_features probes mariadbd with --datadir=., which can
point to the installed mysql-test tree.

During this probe, mariadbd may run the datadir case-sensitivity check
and try to create a *.lower-test file there. This is a bad fit when the
test suite is run from a read-only installed path (e.g. /usr/share/...).

Use $opt_vardir as the datadir for this probe instead, so it runs in a
writable location and avoids writes into the installed test tree.
@vuvova vuvova force-pushed the mdev-39082-mtr-tempdatadir branch from 139bdbf to 42ff88b Compare March 17, 2026 09:21
@vuvova vuvova enabled auto-merge (rebase) March 17, 2026 09:21
@vuvova vuvova merged commit 1ecc1d9 into MariaDB:10.6 Mar 17, 2026
12 of 13 checks passed
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.

4 participants