Bug #40193 mtr --record is currently broken in 5.1-rpl and 6.0-rpl
Submitted: 21 Oct 2008 5:12 Modified: 30 Jan 2009 17:44
Reporter: Sven Sandberg Email Updates:
Status: Closed Impact on me:
None 
Category:Tests Severity:S7 (Test Cases)
Version:5.1-rpl, 6.0-rpl OS:Any
Assigned to: Magnus Blåudd CPU Architecture:Any
Tags: 5.1-rpl-green, mtr

[21 Oct 2008 5:12] Sven Sandberg
Description:
mtr --record doesn't work in 5.1-rpl.

If I run "./mtr --record --verbose --verbose --debug mysqltest", it prints the output listed in the attached file. The beginning of mysql-test/var/log/mysqltest.trace is:

==== BEGIN mysqltest.trace ====
| >LogFile::open
| | enter: dir: , name: /home/sven/bzr/b35701-connection_variable/5.1-rpl/mysql-test/var/log
| | >fn_format
| | | enter: name:   dir: /home/sven/bzr/b35701-connection_variable/5.1-rpl/mysql-test/var/log  extension: .log  flag: 3
| | | >dirname_part
| | | | enter: ''
| | | | >convert_dirname
| | | | <convert_dirname
| | | <dirname_part
| | | >convert_dirname
| | | <convert_dirname
| | | >strlength
| | | <strlength
| | <fn_format
| | info: file_name: /home/sven/bzr/b35701-connection_variable/5.1-rpl/mysql-test/var/log/.log
| <LogFile::open
==== END mysqltest.trace ====

I see two strange things in this trace file:

 (1) Looks like mysqltest.cc gives the wrong parameters to fn_format

 (2) Looks like fn_format misbehaves when the file doesn't have any extension (it replaces /path/to/filename by /path/to/.ext, but I think expected behavior is /path/to/filename.EXT)

I think that (1) is a bug in mysqltest that can be fixed without fixing (2). Probably (2) is a different bug.

How to repeat:
run mtr --record
[21 Oct 2008 5:13] Sven Sandberg
output from ./mtr --record --verbose --verbose --debug mysqltest

Attachment: mysqltest.trace (application/octet-stream, text), 8.35 KiB.

[10 Nov 2008 13:54] 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/58337

2687 Magnus Svensson	2008-11-10
      Bug#40193  mtr --record is currently broken in 5.1-rpl and 6.0-rpl
[14 Nov 2008 10:01] Magnus Blåudd
Pushed to 5.1-rpl and 6.0-rpl
[14 Nov 2008 11:11] Andrei Elkin
Bug #40694 is a duplicate.
[30 Jan 2009 13:29] Bugs System
Pushed into 6.0.10-alpha (revid:luis.soares@sun.com-20090129165607-wiskabxm948yx463) (version source revid:luis.soares@sun.com-20090129163120-e2ntks4wgpqde6zt) (merge vers: 6.0.10-alpha) (pib:6)
[30 Jan 2009 15:10] Bugs System
Pushed into 5.1.32 (revid:luis.soares@sun.com-20090129165946-d6jnnfqfokuzr09y) (version source revid:msvensson@mysql.com-20081110135353-r7yhmtzx0mgbyu3z) (merge vers: 5.1.30) (pib:6)
[30 Jan 2009 17:44] Paul DuBois
Test suite changes. No changelog entry needed.
[17 Feb 2009 14:58] Bugs System
Pushed into 5.1.32-ndb-6.3.23 (revid:tomas.ulin@sun.com-20090217131017-6u8qz1edkjfiobef) (version source revid:tomas.ulin@sun.com-20090203133556-9rclp06ol19bmzs4) (merge vers: 5.1.32-ndb-6.3.22) (pib:6)
[17 Feb 2009 16:45] Bugs System
Pushed into 5.1.32-ndb-6.4.3 (revid:tomas.ulin@sun.com-20090217134419-5ha6xg4dpedrbmau) (version source revid:tomas.ulin@sun.com-20090203133556-9rclp06ol19bmzs4) (merge vers: 5.1.32-ndb-6.3.22) (pib:6)
[17 Feb 2009 18:21] Bugs System
Pushed into 5.1.32-ndb-6.2.17 (revid:tomas.ulin@sun.com-20090217134216-5699eq74ws4oxa0j) (version source revid:tomas.ulin@sun.com-20090201210519-vehobc4sy3g9s38e) (merge vers: 5.1.32-ndb-6.2.17) (pib:6)