Bug #83321 datadir_permission test uses MYSQLXPLUGIN_DIR without checking if it's available
Submitted: 10 Oct 2016 13:13 Modified: 11 Sep 2017 11:56
Reporter: Lars Tangvald Email Updates:
Status: Closed Impact on me:
Category:Tests: Server Severity:S3 (Non-critical)
Version:5.7.15 OS:Any
Assigned to: CPU Architecture:Any

[10 Oct 2016 13:13] Lars Tangvald
The test is in the main suite, and includes a custom cnf file that specifies --plugin-dir=@env.MYSQLXPLUGIN_DIR, but in 5.7.14 mysqlx was removed from the standard plugin list in mysql-test/include/plugin.defs. So the value is not always defined (the test doesn't seem to be failing when the suite is run from the standalone package, and I'm  not sure why).

This is causing test failures in native Debian/Ubuntu packages when the test suite is run during the build.

How to repeat:
Build package from native Debian/Ubuntu source and observe the build log.

Suggested fix:
Add the have_mysqlx_plugin.inc check (or remove custom config) in the test.
[10 Oct 2016 14:20] Lars Tangvald
Just a note that the suggested fix of adding the inc check wouldn't work, since the server is started before the test has a chance to run it :)
[11 Sep 2017 11:56] Margaret Fisher
Posted by developer:
Changelog entry added for MySQL 8.0.3 and 5.7.20. Closing.