hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jakob Homan (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HADOOP-6201) FileSystem::ListStatus should throw FileNotFoundException
Date Mon, 24 Aug 2009 18:30:59 GMT

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

Jakob Homan updated HADOOP-6201:
--------------------------------

    Release Note: 
Solidify FileSystem contract for listStatus method when the provided path does not exist.
The method is now guaranteed to throw a FileNotFoundException, whereas some FileSystem implementations
had previously returned null in this case. Existing code that relies on checking for null
should be updated to catch or propagate a FileNotFoundException.


Adding release note.

> FileSystem::ListStatus should throw FileNotFoundException
> ---------------------------------------------------------
>
>                 Key: HADOOP-6201
>                 URL: https://issues.apache.org/jira/browse/HADOOP-6201
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: fs
>            Reporter: Jakob Homan
>            Assignee: Jakob Homan
>             Fix For: 0.21.0
>
>         Attachments: HADOOP-6201.patch
>
>
> As discussed in HDFS-538, it would be better for FileSystem and its implementations to
throw FileNotFoundException when the file is not found, rather than returning null.  This
will bring it in line with getFileStatus and, I expect, default user expectations.

-- 
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