You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Konstantin Shvachko (JIRA)" <ji...@apache.org> on 2008/04/03 02:06:24 UTC

[jira] Updated: (HADOOP-2841) Dfs methods should not throw RemoteException

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

Konstantin Shvachko updated HADOOP-2841:
----------------------------------------

    Attachment: getNodeNPE.patch

I modified patch per Hairongs comments.
unwrapRemoteException accepets now a variable number of classes to look for unwrapping
and returns an exception rather than throwing it as in the previous patch.
This make DFSClient code less polluted.

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