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

Eli Collins updated HDFS-1088:
------------------------------

    Attachment: hdfs-1088-4.patch

Attached the same patch but this one doesn't override 
TestFcHdfsSymlink#unwrapException. That's needed to make the tests in 
HADOOP-6703 pass. I'll file a separate hdfs jira just to add this override. 
Splitting the tests (core class and hdfs class) across projects is a pain. 

> Prevent renaming a symlink to its target 
> -----------------------------------------
>
>                 Key: HDFS-1088
>                 URL: https://issues.apache.org/jira/browse/HDFS-1088
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: name-node
>            Reporter: Eli Collins
>            Assignee: Eli Collins
>         Attachments: hdfs-1088-1.patch, hdfs-1088-2.patch, hdfs-1088-3.patch, 
> hdfs-1088-4.patch
>
>
> Here's the HDFS side of HADOOP-6563: 
> * Small bug fix for renaming a symlink to it's target
> * Hdfs#getFileBlockLocations needs to use getUriPath() to ensure an absolute 
> path is passed in. See minor change to INode#getPathNames, which now asserts 
> instead of returning null and causing NPEs. This was exposed via calling 
> FileContext#getFileBlockLocations using a symlink.
> * Comment in FSImage around symlinks and image loading

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to