You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Boris Shkolnik (JIRA)" <ji...@apache.org> on 2009/09/03 02:17:32 UTC

[jira] Updated: (HADOOP-6229) Atempt to make a directory under an existing file on LocalFileSystem should throw an Exception.

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

Boris Shkolnik updated HADOOP-6229:
-----------------------------------

    Attachment: HADOOP-6229.patch

Took Nikolas' suggestion. Created new class FileAlreadyExestsException.
Turns out mapred already has such class. 
After this patch is committed I will remove mapred's one and make it use this one (from common).
Also I will need to change HDFS to use this new exception instead of FileNotFound.


> Atempt to make a directory under an existing file on LocalFileSystem should throw an Exception.
> -----------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-6229
>                 URL: https://issues.apache.org/jira/browse/HADOOP-6229
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs
>            Reporter: Boris Shkolnik
>            Assignee: Boris Shkolnik
>         Attachments: HADOOP-6229.patch
>
>
> This task is sub task of HDFS-303
> {quote}
>  "1. When trying to make a directory under an existing file, HDFS throws an IOException while LocalFileSystem doesn't.
>  An IOException seems good here. "
> {quote}
> Actually HDFS throws FileNotFoundException in this case (in FSDirectory.mkdirs() ). So I guess we should do the same.

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