Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
5.5(EOL), 10.1(EOL), 10.2(EOL), 10.3(EOL), 10.4(EOL), 10.5
-
None
Description
The test runs the MTR bootstrap command (MYSQLD_BOOTSTRAP_CMD) without changing the datadir. The command is supposed to fail, but not right away – the server will attempt to start up, so it can conflict with other tests or logic which use the same datadir in parallel (as it is common for all parallel workers). In a worse scenario, if the test doesn't work as expected, it may damage install.db datadir which is important to keep clean and healthy for resetting the environment for tests.
The test should be using its own unique datadir.
--- /data/src/10.4/mysql-test/main/default_storage_engine.test 2019-04-21 01:03:31.152431465 +0300
|
+++ main/default_storage_engine.test 2020-04-23 04:15:50.501231748 +0300
|
@@ -9,8 +9,12 @@
|
# Now it *must* fail, because if InnoDB is compiled in, it is used as a default
|
# storage engine. but $cmd includes --skip-innodb
|
#
|
+
|
+--mkdir $MYSQL_TMP_DIR/default_storage_engine_data
|
+
|
error 1;
|
-exec $cmd;
|
+exec $cmd --datadir=$MYSQL_TMP_DIR/default_storage_engine_data;
|
|
-echo "all ok"; # to not have zero-length result file
|
+--rmdir $MYSQL_TMP_DIR/default_storage_engine_data
|
|
+echo "all ok"; # to not have zero-length result file
|