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 "Zheng Shao (JIRA)" <ji...@apache.org> on 2010/01/19 21:29:54 UTC
[jira] Created: (HADOOP-6499) Standardize when we return false and
when we throw IOException in FileSystem API
Standardize when we return false and when we throw IOException in FileSystem API
--------------------------------------------------------------------------------
Key: HADOOP-6499
URL: https://issues.apache.org/jira/browse/HADOOP-6499
Project: Hadoop Common
Issue Type: Improvement
Reporter: Zheng Shao
Currently most of the methods in Hadoop FileSystem has 2 ways of returning errors:
1. Return false
2. throw an IOException
We should standardize what should happen in what case, so that the caller can retry/fail accordingly.
The standard can be added to javadoc of FileSystem, then we need to verify all FileSystem implementation follow the same standard.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HADOOP-6499) Standardize when we return false
and when we throw IOException in FileSystem API
Posted by "Owen O'Malley (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-6499?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12802474#action_12802474 ]
Owen O'Malley commented on HADOOP-6499:
---------------------------------------
This is hard to change in a compatible way. In general returning a boolean should be avoided because it provides no information for the user about what happened.
Please look at the FileContext to see if that meets your needs.
> Standardize when we return false and when we throw IOException in FileSystem API
> --------------------------------------------------------------------------------
>
> Key: HADOOP-6499
> URL: https://issues.apache.org/jira/browse/HADOOP-6499
> Project: Hadoop Common
> Issue Type: Improvement
> Reporter: Zheng Shao
>
> Currently most of the methods in Hadoop FileSystem has 2 ways of returning errors:
> 1. Return false
> 2. throw an IOException
> We should standardize what should happen in what case, so that the caller can retry/fail accordingly.
> The standard can be added to javadoc of FileSystem, then we need to verify all FileSystem implementation follow the same standard.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.