[
https://issues.apache.org/jira/browse/HADOOP-9061?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13510671#comment-13510671
]
Bikas Saha commented on HADOOP-9061:
------------------------------------
I agree. Redoing things like rename and length are not future proof because
folks can simply use File api's and get incorrect results. +1. Code looks good.
> Java6+Windows does not work well with symlinks
> ----------------------------------------------
>
> Key: HADOOP-9061
> URL: https://issues.apache.org/jira/browse/HADOOP-9061
> Project: Hadoop Common
> Issue Type: Bug
> Affects Versions: 1-win
> Reporter: Ivan Mitic
> Assignee: Ivan Mitic
> Attachments: HADOOP-9061.branch-1-win.symlinks.patch
>
>
> We’ve seen multiple problems with file operations on symbolic links on Java6
> on Windows. Specifically:
> - File#length returns zero on symbolic links
> - File#renameTo renames the target, not the symlink
> Problematic scenarios are mainly related to symlinks created for dist cache.
> Java7 does not have above problems.
--
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