Bug #50061 Test "rpl_loaddata_symlink" uses a Unix-specific "run-slave" script
Submitted: 4 Jan 2010 18:45 Modified: 18 Jun 2010 1:00
Reporter: Joerg Bruehe Email Updates:
Status: Closed Impact on me:
None 
Category:Tests: Replication Severity:S3 (Non-critical)
Version:5.5.1-m2 OS:Windows
Assigned to: Daogang Qu CPU Architecture:Any

[4 Jan 2010 18:45] Joerg Bruehe
Description:
Symptom in release build tests:

=====
rpl.rpl_loaddata_symlink 'stmt'          [ retry-fail ]
        Test ended at YYYY-MM-DD HH:MM:SS

CURRENT_TEST: rpl.rpl_loaddata_symlink

Failed to execute 'g:/mysql-5.5.1-m2-winbuild/mysql-5.5.1-m2-win32/mysql-test/suite/rpl/t/rpl_loaddata_symlink
-slave.sh'

 - saving '/PATH/mysql-test/var/log/rpl.rpl_loaddata_symlink-stmt/' to '/PATH/mysql-test/var/log/rpl.rpl_loadd
ata_symlink-stmt/'
=====

Happens on Windows-32 and Windows-64.

Looking at the failing script, it is no surprise:
=====
/V55/clone-5.5/mysql-test> cat ./suite/rpl/t/rpl_loaddata_symlink-slave.sh
ln -s $MYSQLTEST_VARDIR/std_data $MYSQLTEST_VARDIR/std_data_slave_link
=====

I doubt we can do a "ln -s" on Windows.

How to repeat:
Run the test suite.

Suggested fix:
Off-hand, I see three alternatives:

- Enhance MTR to do symbolic links.

- Change the test to do without symbolic links.

- Skip the test on Windows.

There may be others ...
[29 Jan 2010 3:51] 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/98527

3332 Dao-Gang.Qu@sun.com	2010-01-29
      Bug #50061  	Test "rpl_loaddata_symlink" uses a Unix-specific "run-slave" script
      Bug #49984  	Test 'rpl_loaddata_symlink' fails with "Could not find target log"
      
      The symbolic link will be not supported on windows system
      if the cygwin is not installed on it. The test case is used
      to test that if the symbolic link works fine. So we can not
      change the test case to do without symbolic link.
      
      To fix the problem, skip the test on windows.
     @ mysql-test/suite/rpl/t/rpl_loaddata_symlink.test
        Added code to skip the test on windows.
[2 Feb 2010 5:18] 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/98883

3332 Dao-Gang.Qu@sun.com	2010-02-02
      Bug #50061  	Test "rpl_loaddata_symlink" uses a Unix-specific "run-slave" script
      Bug #49984  	Test 'rpl_loaddata_symlink' fails with "Could not find target log"
      
      Sometimes the symbolic link is available on Windows if
      you have some Unix (emulation) layer installed like
      Cygwin, MKS or other. But symbolic link is not always
      available. It depends on versions, file volume and
      system environment of Windows. And the symbolic link
      is not typically used on Windows, at least not in the
      degree and style they are used on Unix. We can not 
      change the test case to do without symbolic link,
      because the test case is used to test that if the
      symbolic link works fine.
      
      To fix the problem, skip the test on windows.
     @ mysql-test/suite/rpl/t/rpl_loaddata_symlink.test
        Added code to skip the test on windows.
[5 Feb 2010 6: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/99369

3362 Dao-Gang.Qu@sun.com	2010-02-05
      Bug #50061  	Test "rpl_loaddata_symlink" uses a Unix-specific "run-slave" script
      Bug #49984  	Test 'rpl_loaddata_symlink' fails with "Could not find target log"
      
      Sometimes the symbolic link is available on Windows if
      you have some Unix (emulation) layer installed like
      Cygwin, MKS or other. But symbolic link is not always
      available. It depends on versions, file volume and
      system environment of Windows. And the symbolic link
      is not typically used on Windows, at least not in the
      degree and style they are used on Unix. We can not 
      change the test case to do without symbolic link,
      because the test case is used to test that if the
      symbolic link works fine.
      
      To fix the problem, skip the test on windows.
     @ mysql-test/suite/rpl/t/rpl_loaddata_symlink.test
        Added code to skip the test on windows.
[5 Feb 2010 7: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/99371

3881 Dao-Gang.Qu@sun.com	2010-02-05 [merge]
      Bug #50061  	Test "rpl_loaddata_symlink" uses a Unix-specific "run-slave" script
      Bug #49984  	Test 'rpl_loaddata_symlink' fails with "Could not find target log"
            
      Sometimes the symbolic link is available on Windows if
      you have some Unix (emulation) layer installed like
      Cygwin, MKS or other. But symbolic link is not always
      available. It depends on versions, file volume and
      system environment of Windows. And the symbolic link
      is not typically used on Windows, at least not in the
      degree and style they are used on Unix. We can not 
      change the test case to do without symbolic link,
      because the test case is used to test that if the
      symbolic link works fine.
            
      To fix the problem, skip the test on windows.
     @ mysql-test/suite/rpl/t/rpl_loaddata_symlink.test
        Added code to skip the test on windows.
[5 Feb 2010 7:28] Daogang Qu
Pushed into mysql-5.1-bugteam and mysql-pe.
[1 Mar 2010 8:44] Bugs System
Pushed into 5.1.45 (revid:joro@sun.com-20100301083827-xnimmrjg6bh33o1o) (version source revid:joerg@mysql.com-20100212173307-ph563zr4wmoklgwd) (merge vers: 5.1.45) (pib:16)
[1 Mar 2010 13:24] Jon Stephens
Affects test case only; closed without further action.

See also BUG#49984.
[2 Mar 2010 14:35] Bugs System
Pushed into 6.0.14-alpha (revid:alik@sun.com-20100302142746-u1gxdf5yk2bjrq3e) (version source revid:alik@sun.com-20100225090938-2j5ybqoau570mytu) (merge vers: 6.0.14-alpha) (pib:16)
[2 Mar 2010 14:40] Bugs System
Pushed into 5.5.3-m2 (revid:alik@sun.com-20100302072233-t3uqgjzdukt1pyhe) (version source revid:alexey.kopytov@sun.com-20100209075938-mmcnyf6w631ozc45) (merge vers: 5.5.2-m2) (pib:16)
[2 Mar 2010 14:45] Bugs System
Pushed into mysql-next-mr (revid:alik@sun.com-20100302072432-k8xvfkgcggkwgi94) (version source revid:alik@sun.com-20100224135227-rcqs9pe9b2in80pf) (pib:16)
[17 Jun 2010 12:03] Bugs System
Pushed into 5.1.47-ndb-7.0.16 (revid:martin.skold@mysql.com-20100617114014-bva0dy24yyd67697) (version source revid:vasil.dimov@oracle.com-20100331130613-8ja7n0vh36a80457) (merge vers: 5.1.46) (pib:16)
[17 Jun 2010 12:45] Bugs System
Pushed into 5.1.47-ndb-6.2.19 (revid:martin.skold@mysql.com-20100617115448-idrbic6gbki37h1c) (version source revid:martin.skold@mysql.com-20100609140708-52rvuyq4q500sxkq) (merge vers: 5.1.45-ndb-6.2.19) (pib:16)
[17 Jun 2010 13:30] Bugs System
Pushed into 5.1.47-ndb-6.3.35 (revid:martin.skold@mysql.com-20100617114611-61aqbb52j752y116) (version source revid:vasil.dimov@oracle.com-20100331130613-8ja7n0vh36a80457) (merge vers: 5.1.46) (pib:16)
[27 Aug 2010 13:41] 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/117025

3078 Andrei Elkin	2010-08-27
      bug#50061
      
      simplifying declaraion of an opaque pointer to active_mi
[27 Aug 2010 13:59] Andrei Elkin
The last patch was intended for wl#3656. The ref to the bug in it is incorrect.