[
https://issues.apache.org/jira/browse/HDFS-1079?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12862237#action_12862237
]
Sanjay Radia commented on HDFS-1079:
------------------------------------
* dfsclient:
The methods should declare only IOException - the actual exceptions are
declared in Client-protocol; this will make it easier to keep the exception
declarations uptodate.
* FSDirectory - out of sync with trunk
** Declare more concrete exceptions beyond IOExceptions
*** renameTo -
*** unprotectedRenameTo
*** getPreferredBlockSize
*** addSymlink
* FSNamesystem
** Remove IO exception declaration - not thrown
*** unprotectedConcat
*** getBlocklocations*
*** createLocatedBlock
*** concat
*** setTimes
** Throw more detailed exception
*** startFile*
*** appendFile i
*** delete*
* File Jira to cleanup IOException - a better exception can be thrown
** removeBlock, removeLastBlock
** getCurrentUser
** plus a few others.
> HDFS implementation should throw exceptions defined in AbstractFileSystem
> -------------------------------------------------------------------------
>
> Key: HDFS-1079
> URL: https://issues.apache.org/jira/browse/HDFS-1079
> Project: Hadoop HDFS
> Issue Type: New Feature
> Components: name-node
> Reporter: Suresh Srinivas
> Assignee: Suresh Srinivas
> Fix For: 0.22.0
>
> Attachments: HDFS-1079.patch, HDFS-1079.patch
>
>
> HDFS implementation Hdfs.java should throw exceptions as defined in
> AbstractFileSystem. To facilitate this, ClientProtocol should be changed to
> throw specific exceptions, as defined in AbstractFileSystem.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.