[ 
https://issues.apache.org/jira/browse/HADOOP-9527?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Arpit Agarwal updated HADOOP-9527:
----------------------------------

    Attachment: RenameLink.java

This test is exposing a Java 1.6 bug on Windows when trying to rename a 
symlink. Attached a minimal repro to demonstrate the JVM bug.

Here is the output on Windows using Java 1.7 and 1.6. 1.7 renames the symlink 
as expected, while 1.6 renames the target of the symlink.

{code}
C:\tmp\test>dir

 Directory of C:\tmp\test

05/02/2013  06:51 PM                 7 file.txt
05/02/2013  06:51 PM    <SYMLINK>      link1 [file.txt]

C:\tmp\test>c:\progra~1\java\jdk1.7.0_09\bin\java RenameLink link1 link2

C:\tmp\test>dir

 Directory of C:\tmp\test

05/02/2013  06:51 PM                 7 file.txt
05/02/2013  06:51 PM    <SYMLINK>      link2 [file.txt]

C:\tmp\test>c:\progra~1\java\jdk1.6.0_35\bin\java RenameLink link2 link3

C:\tmp\test>dir

 Directory of C:\tmp\test

05/02/2013  06:51 PM    <SYMLINK>      link2 [file.txt]
05/02/2013  06:51 PM                 7 link3

{code}


                
> TestLocalFSFileContextSymlink is broken on Windows
> --------------------------------------------------
>
>                 Key: HADOOP-9527
>                 URL: https://issues.apache.org/jira/browse/HADOOP-9527
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: test
>    Affects Versions: 3.0.0
>            Reporter: Arpit Agarwal
>             Fix For: 3.0.0
>
>         Attachments: RenameLink.java
>
>
> Multiple test cases are broken. I didn't look at each failure in detail.
> The main cause of the failures appears to be that RawLocalFS.readLink() does 
> not work on Windows. We need "winutils readlink" to fix the test.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to