Bug #24354 option "--extern" of mysql-test-run.pl does not work anymore
Submitted: 16 Nov 2006 9:09 Modified: 11 Dec 2006 8:16
Reporter: Matthias Leich Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Tests Severity:S1 (Critical)
Version:5.1 OS:
Assigned to: Magnus BlÄudd CPU Architecture:Any

[16 Nov 2006 9:09] Matthias Leich
Description:
The changes to mysql-test-run.pl within the last weeks
broke important functionality urgent needed in some
testsuites.
Example:

./mysql-test-run.pl --start-and-exit
./mysql-test-run.pl --extern --socket=var/tmp/master.sock alias
Output:
Logging: ./mysql-test-run.pl --extern --socket=var/tmp/master.sock alias
MySQL Version 5.1.13
....
mysql-test-run: WARNING: Could not parse variable list line : 
Removing Stale Files
=======================================================
Starting Tests in the 'main' suite

TEST       RESULT         TIME (ms)
-------------------------------------------------------

alias      [ skipped ]   Can't restart a running server
-------------------------------------------------------

My environment:
- PC Intel Pentium M (x86-32Bit) with Linux(SuSE 10.1)
- MySQL compiled from source
     mysql-5.1 last ChangeSet@1.2365, 2006-11-15
     I guess mysql-5.0 and probably 4.1 show the same bug.
     BUILD/compile-pentium-debug-max

How to repeat:
./mysql-test-run.pl --start-and-exit
./mysql-test-run.pl --extern --socket=var/tmp/master.sock alias
[17 Nov 2006 9:46] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/commits/15476

ChangeSet@1.2315, 2006-11-17 10:46:21+01:00, msvensson@neptunus.(none) +1 -0
  Bug#24354 option "--extern" of mysql-test-run.pl does not work anymore
   - Dont require restart when using extern and there is no record of
     master being started(pid is not known)
[17 Nov 2006 12:21] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/commits/15485

ChangeSet@1.2554, 2006-11-17 13:20:48+01:00, msvensson@neptunus.(none) +1 -0
  BUG#24354 option "--extern" of mysql-test-run.pl does not work anymore
[21 Nov 2006 13:42] Matthias Leich
Hi Magnus,
I applied your patch and it helped partially.
Please have a look into the attached files.
M.sh is a shellscript running two variants
of server startup and "--extern" test.
The first case where the mysql-test-run.pl
picks its default vardir fails because
mysql-test-run.pl --extern ... damages
the server environment (Removal of files).
This could be most probably prevented if
a vardir<>server vardir is around the "--extern"
assigned. But I think such a solution is 
uncomfortable and error prone.
The second case works fine.
Protocol.gz contains my protocol.
[21 Nov 2006 13:44] Matthias Leich
Test Shellscript

Attachment: M.sh (application/x-shellscript, text), 2.66 KiB.

[21 Nov 2006 13:45] Matthias Leich
Protocol

Attachment: Protocol.gz (application/x-gzip, text), 7.15 KiB.

[28 Nov 2006 12:57] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/commits/15945

ChangeSet@1.2560, 2006-11-28 13:57:07+01:00, msvensson@neptunus.(none) +1 -0
  Bug#24354 option "--extern" of mysql-test-run.pl does not work anymore
   - Better control of when to create/remove vardir
[11 Dec 2006 8:16] Jon Stephens
Thank you for your bug report. This issue has been committed to our source repository of that product and will be incorporated into the next release.

If necessary, you can access the source repository and build the latest available version, including the bug fix. More information about accessing the source trees is available at

    http://dev.mysql.com/doc/en/installing-source.html

Documented bugfix for 4.1.23/5.0.32/5.1.15.