Skip to content
/ server Public

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

Open
aquilamacedo wants to merge 1 commit intoMariaDB:10.6from
aquilamacedo:mdev-39082-mtr-tempdatadir
Open

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

Conversation

@aquilamacedo
Copy link
Contributor

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/...).

Create a temporary writable datadir under $opt_vardir instead, keeping the probe on the same filesystem while avoiding writes into the installed test tree.

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/...).

Create a temporary writable datadir under $opt_vardir instead, keeping
the probe on the same filesystem while avoiding 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.

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants