hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Konstantin Shvachko (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HADOOP-2841) Dfs methods should not throw RemoteException
Date Thu, 03 Apr 2008 00:06:24 GMT

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


Mime
View raw message