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

Suresh Srinivas commented on HDFS-602:
--------------------------------------

Here is the description for FileAlreadyExistsException:  Used when target file 
already exists for any operation and is not configured to be overwritten. 

In this case, the intention of the exception is different. It does not indicate 
the target already exists. It indicates that the parent directory of the target 
is a file. Given this, I do not think the exception is appropriate. 

> Atempt to make a directory under an existing file on DistributedFileSystem 
> should throw an FileAlreadyExistsException instead of FileNotFoundException
> ------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HDFS-602
>                 URL: https://issues.apache.org/jira/browse/HDFS-602
>             Project: Hadoop HDFS
>          Issue Type: Bug
>            Reporter: Boris Shkolnik
>            Assignee: Boris Shkolnik
>         Attachments: HDFS-602.patch
>
>
> Atempt to make a directory under an existing file on DistributedFileSystem 
> should throw an FileAlreadyExistsException instead of FileNotFoundException.
> Also we should unwrap this exception from RemoteException

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

Reply via email to