Bug #42451 setup_fake_relay_log makes an incorrect path on windows
Submitted: 29 Jan 2009 13:53 Modified: 17 Feb 2009 17:24
Reporter: Andrei Elkin Email Updates:
Status: Closed Impact on me:
None 
Category:Tests: Replication Severity:S3 (Non-critical)
Version:5.1-bt OS:Any
Assigned to: Andrei Elkin CPU Architecture:Any

[29 Jan 2009 13:53] Andrei Elkin
Description:
running rpr_cross_version reveal an issue on windows.
It is in
rpl.rpl_cross_version 'row'    [ fail ]

mysqltest: In included file ".\include\setup_fake_relay_log.inc": At line 75: query 'CHANGE MASTER TO MASTER_HOST='dummy.localdomain', RELAY_LOG_FILE='$_fake_relay_log', RELAY_LOG_POS=4' failed: 29: File 'e:\var-n_mix-100\master-data\/slave-relay-bin-fake.000001' not found (Errcode: 22)

an extra "/" char in the path.

https://intranet.mysql.com/secure/pushbuild/getlog.pl?dir=bzr_mysql-5.1-bugteam&entry=Serg...

How to repeat:
mtr rpl_cross_version  on win

Suggested fix:
correct include/setup_fake_relay_log.inc.
[29 Jan 2009 13:55] 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/64490

2757 Andrei Elkin	2009-01-29
      bug #42451  setup_fake_relay_log makes an incorrect path on windows
      
      Temporarily blocking to run the test on windows.
      
      Todo: remove the include upon setup_fake_relay_log has been fixed.
[3 Feb 2009 9:41] Bugs System
Pushed into 5.1.32 (revid:joro@sun.com-20090203090549-gos3v4320vimrzg6) (version source revid:aelkin@mysql.com-20090129135458-b6zla74ebbul9ely) (merge vers: 5.1.32) (pib:6)
[4 Feb 2009 11:16] Bugs System
Pushed into 6.0.10-alpha (revid:kostja@sun.com-20090204104420-mw1i2u9lum4bxjo6) (version source revid:joro@sun.com-20090131155335-nimzjjodg8kctjcw) (merge vers: 6.0.10-alpha) (pib:6)
[6 Feb 2009 20: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/65527

2791 Andrei Elkin	2009-02-06
      Bug #42451 setup_fake_relay_log makes an incorrect path on windows
      
      Path composition for the relay log file that is stored into the relay index file
      was not correct for windows.
      mysql-test language does not provide primitives for portable path composition.
      
      Fixed with storing only the basename part of the external "fake" relay log into
      the relay index file.
      Safety of removal of the dirname part of the relaylog is provided by logics of
      `setup_fake_relay_log' that places the fake file into @@datadir directory.
[9 Feb 2009 13:17] 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/65604

2794 Andrei Elkin	2009-02-09
      Bug #42451 setup_fake_relay_log makes an incorrect path on windows
      
      Path composition for the relay log file that is stored into the relay index
      file was not correct for windows.
      mysql-test language does not provide primitives for portable path composition.
            
      Fixed with storing only the basename part of the external "fake" relay log into
      the relay index file.
      Safety of removal of the dirname part of the relaylog is provided by logics of
      `setup_fake_relay_log' that places the fake file into @@datadir directory.
[13 Feb 2009 16:24] 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/66258

3043 Andrei Elkin	2009-02-13 [merge]
      merging bug#42451 fixes to 6.0-bt
[13 Feb 2009 16:29] Andrei Elkin
pushed to bt trees.
[16 Feb 2009 8:50] 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/66432

2801 Andrei Elkin	2009-02-16
      rpl_cross_version.test is disable for win till a proper fixing bug#42451
[16 Feb 2009 12:42] Andrei Elkin
The macro refined by the last patch constructs a valid path for the next
routine of parsing in mysqld. The latter passes okay on unix, not on windows.
Another bug#42879 is filed to fix that peculiarity. 
rpl_cross_version.test has to stay windows-disabled until the newer bug has been fixed.
[17 Feb 2009 14:54] 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:42] 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 17:24] Jon Stephens
Changes in test suite only. No user-facing changes to document. Closed w/o further action.
[17 Feb 2009 18:18] 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-20090202111723-1zzwax187rtls913) (merge vers: 5.1.32-ndb-6.2.17) (pib:6)
[19 Feb 2009 13:04] Bugs System
Pushed into 6.0.10-alpha (revid:sergey.glukhov@sun.com-20090218125737-5y5b2xo3duo1wlvo) (version source revid:sergey.glukhov@sun.com-20090216145310-eo8xpvq2je0m3jkv) (merge vers: 6.0.10-alpha) (pib:6)
[13 Mar 2009 19:03] Bugs System
Pushed into 5.1.33 (revid:joro@sun.com-20090313111355-7bsi1hgkvrg8pdds) (version source revid:vvaintroub@mysql.com-20090218093153-sjzxf01i4ezte0xp) (merge vers: 5.1.33) (pib:6)
[9 May 2009 16:40] Bugs System
Pushed into 5.1.34-ndb-6.2.18 (revid:jonas@mysql.com-20090508185236-p9b3as7qyauybefl) (version source revid:jonas@mysql.com-20090508100057-30ote4xggi4nq14v) (merge vers: 5.1.33-ndb-6.2.18) (pib:6)
[9 May 2009 17:37] Bugs System
Pushed into 5.1.34-ndb-6.3.25 (revid:jonas@mysql.com-20090509063138-1u3q3v09wnn2txyt) (version source revid:jonas@mysql.com-20090508175813-s6yele2z3oh6o99z) (merge vers: 5.1.33-ndb-6.3.25) (pib:6)
[9 May 2009 18:35] Bugs System
Pushed into 5.1.34-ndb-7.0.6 (revid:jonas@mysql.com-20090509154927-im9a7g846c6u1hzc) (version source revid:jonas@mysql.com-20090509073226-09bljakh9eppogec) (merge vers: 5.1.33-ndb-7.0.6) (pib:6)