hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hemanth Yamijala (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HADOOP-6536) FileUtil.fullyDelete(dir) behavior is not defined when we pass a symlink as the argument
Date Wed, 03 Feb 2010 18:15:27 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-6536?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12829170#action_12829170
] 

Hemanth Yamijala commented on HADOOP-6536:
------------------------------------------

Based on a simple test I did on Linux, it appears that removal of a symlink (whether to file
or directory) only removes the link. If I treat FileUtil.fullyDelete as a Java equivalent
for "rm -r", then it seems to me that there's a bug in the implementation of FileUtil.fullyDelete.
It should only delete the link and not contents of it. IOW, I am +1 for Ravi's proposal.

> FileUtil.fullyDelete(dir) behavior is not defined when we pass a symlink as the argument
> ----------------------------------------------------------------------------------------
>
>                 Key: HADOOP-6536
>                 URL: https://issues.apache.org/jira/browse/HADOOP-6536
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs
>            Reporter: Amareshwari Sriramadasu
>             Fix For: 0.22.0
>
>
> FileUtil.fullyDelete(dir) deletes contents of sym-linked directory when we pass a symlink.
If this is the behavior, it should be documented as so. 
> Or it should be changed not to delete the contents of the sym-linked directory.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message