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/08/23 02:18:44 UTC
[jira] Commented: (HADOOP-4009) Declare HDFS exceptions in the HDFS
interface and also in class FileSystem and rethrow the encapsulated
exception
[ https://issues.apache.org/jira/browse/HADOOP-4009?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12625005#action_12625005 ]
Konstantin Shvachko commented on HADOOP-4009:
---------------------------------------------
Re-throwing should be rather easy since we have {{unwrapRemoteException()}}.
But catching and analyzing the "real" exceptions instead of {{RemoteException}} as we do now will involve a lot of code changes.
> Declare HDFS exceptions in the HDFS interface and also in class FileSystem and rethrow the encapsulated exception
> -----------------------------------------------------------------------------------------------------------------
>
> Key: HADOOP-4009
> URL: https://issues.apache.org/jira/browse/HADOOP-4009
> Project: Hadoop Core
> Issue Type: Sub-task
> Reporter: Sanjay Radia
>
> Server-side exceptions are encapsulated in the remote exception (as the class name and the error string ).
> The client side and FileSystem does not declare or thrown the these encapsulated exception.
> Work Items
> * Declare the exceptions in FileSystem and the HDFS interface (but still as subclasses of IOException)
> * Rethrow encapsulated declared exceptions if they are the declared exception.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.