hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hairong Kuang (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HADOOP-2841) Dfs methods should not throw RemoteException
Date Tue, 01 Apr 2008 18:42:24 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-2841?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12584244#action_12584244
] 

Hairong Kuang commented on HADOOP-2841:
---------------------------------------

RemoteException.unwrapRemoteException methods waste an instantiation of an exception if this
exception is not an IOException. Better to use Class.isAssignableFrom to determine the exception
class is a subclass of IOException before the instantiation.

> Dfs methods should not throw RemoteException
> --------------------------------------------
>
>                 Key: HADOOP-2841
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2841
>             Project: Hadoop Core
>          Issue Type: Improvement
>          Components: dfs
>    Affects Versions: 0.16.0
>            Reporter: Hairong Kuang
>            Assignee: Konstantin Shvachko
>             Fix For: 0.17.0
>
>         Attachments: getNodeNPE.patch
>
>
> Dfs should unwrap the RemoteException and throw the real cause of the error to the user.
This allows the user to find out the real cause without examining the remote exception. This
also allows the user to use the dfs interface without aware of the implementation details
(i.e. rpc).

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