hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jian He (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-9576) Make NetUtils.wrapException throw EOFException instead of wrapping it as IOException
Date Wed, 05 Jun 2013 17:46:20 GMT

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

Jian He commented on HADOOP-9576:
---------------------------------

Steve, thanks for taking this over.
Not related to this patch: there's already a getHostDetailsAsString method which is only used
by wrapException(), can we make use of this method for all exception types for consistency.
                
> Make NetUtils.wrapException throw EOFException instead of wrapping it as IOException
> ------------------------------------------------------------------------------------
>
>                 Key: HADOOP-9576
>                 URL: https://issues.apache.org/jira/browse/HADOOP-9576
>             Project: Hadoop Common
>          Issue Type: Bug
>    Affects Versions: 3.0.0, 1.2.1
>            Reporter: Jian He
>            Assignee: Steve Loughran
>         Attachments: HADOOP-9576-001.patch
>
>
> In case of EOFException, NetUtils is now wrapping it as IOException, we may want to throw
EOFException as it is, since EOFException can happen when connection is lost in the middle,
the client may want to explicitly handle such exception

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message