Bug #18617 mysql-test-run.pl, partially wrong handling of option "start-dirty"
Description:
The option "start-dirty" should do nothing different than "start-and-exit",
except that the cleanup within data directories and the recreation
of databases is omitted. That means "start-dirty" should use any already
existing databases/tables/users ...
Last year the position of the main "start-and-exit" actions was
shifted, but it was forgotten to also shift the "start-dirty" actions.
Also several actions of the mtr_timer processes where introduced
and/or modified, but "start-dirty" was not treated like "start-and-exit".
AFAIR the semantics of the "start-and-exit" is similar to the basic
preparation steps as if it is intended to execute the assigned
testcase, except that the testcase itself will be not executed
(phase where mysqltest runs) and the server will be kept running.
Example: ./mysql-test-run.pl <some options> <testcase> \
"start-and-exit"
1. stop a probably already running server
2. cleanup of data directory
3. install default databases "mysql" and "test"
4. start the server by using a probably existing t/<testcase>.opt
5. start the mtr_timer processes
6. simply exit
"start-dirty" should do the same but omit 2. and 3.
The current "start-dirty" behaviour shows some minor problems
around the handling of <testcase>.opt files and probably around
the handling of the mtr_timers.
I do not know of any existing test or test currently in implementation
which suffers from these problems.
But of course every attempt to start a server via "start-dirty" with
use of an opt file belonging to a certain testcase will produce
unexpected effects.
I fear also that future improvements of mysql-test-run.pl will
take care of "start-and-exit", but forget to maintain "start-dirty".
The result could be, that testsuites like Upgrade/Downgrade which
depend on a correct working "start-dirty" will be broken.
My environment:
- Intel PC with Linux(SuSE 9.3)
- MySQL compiled from source
Version 5.1 last ChangeSet@1.2243.2.1, 2006-03-28
Version 5.0 last ChangeSet@1.2084, 2006-03-13
Version 4.1 last ChangeSet@1.2471, 2006-02-03
How to repeat:
N/A
Suggested fix:
I think it is sufficient to repair "start-dirty" for MySQL versions >= 5.0.
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.052 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.
Description: The option "start-dirty" should do nothing different than "start-and-exit", except that the cleanup within data directories and the recreation of databases is omitted. That means "start-dirty" should use any already existing databases/tables/users ... Last year the position of the main "start-and-exit" actions was shifted, but it was forgotten to also shift the "start-dirty" actions. Also several actions of the mtr_timer processes where introduced and/or modified, but "start-dirty" was not treated like "start-and-exit". AFAIR the semantics of the "start-and-exit" is similar to the basic preparation steps as if it is intended to execute the assigned testcase, except that the testcase itself will be not executed (phase where mysqltest runs) and the server will be kept running. Example: ./mysql-test-run.pl <some options> <testcase> \ "start-and-exit" 1. stop a probably already running server 2. cleanup of data directory 3. install default databases "mysql" and "test" 4. start the server by using a probably existing t/<testcase>.opt 5. start the mtr_timer processes 6. simply exit "start-dirty" should do the same but omit 2. and 3. The current "start-dirty" behaviour shows some minor problems around the handling of <testcase>.opt files and probably around the handling of the mtr_timers. I do not know of any existing test or test currently in implementation which suffers from these problems. But of course every attempt to start a server via "start-dirty" with use of an opt file belonging to a certain testcase will produce unexpected effects. I fear also that future improvements of mysql-test-run.pl will take care of "start-and-exit", but forget to maintain "start-dirty". The result could be, that testsuites like Upgrade/Downgrade which depend on a correct working "start-dirty" will be broken. My environment: - Intel PC with Linux(SuSE 9.3) - MySQL compiled from source Version 5.1 last ChangeSet@1.2243.2.1, 2006-03-28 Version 5.0 last ChangeSet@1.2084, 2006-03-13 Version 4.1 last ChangeSet@1.2471, 2006-02-03 How to repeat: N/A Suggested fix: I think it is sufficient to repair "start-dirty" for MySQL versions >= 5.0.