You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Arpit Agarwal (JIRA)" <ji...@apache.org> on 2018/01/23 20:21:00 UTC

[jira] [Commented] (HDFS-13054) Handling PathIsNotEmptyDirectoryException in DFSClient delete call

    [ https://issues.apache.org/jira/browse/HDFS-13054?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16336327#comment-16336327 ] 

Arpit Agarwal commented on HDFS-13054:
--------------------------------------

Thanks for this improvement [~nandakumar131]. Minor comment on the test case:
{code}
fs.create(new Path("/tmp/nonEmptyDir/emptyFile"));
{code}
You can close the FileOutputStream returned here.

+1 otherwise.

> Handling PathIsNotEmptyDirectoryException in DFSClient delete call
> ------------------------------------------------------------------
>
>                 Key: HDFS-13054
>                 URL: https://issues.apache.org/jira/browse/HDFS-13054
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: hdfs-client
>            Reporter: Nanda kumar
>            Assignee: Nanda kumar
>            Priority: Major
>         Attachments: HDFS-13054.000.patch
>
>
> In {{DFSClient#delete}} call, if we get {{RemoteException(PathIsNotEmptyDirectoryException)}} we should unwrap and throw {{PathIsNotEmptyDirectoryException}} to the caller.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org