hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Loughran (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-15178) Generalize NetUtils#wrapException to handle other subclasses with String Constructor.
Date Fri, 19 Jan 2018 18:34:00 GMT

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

Steve Loughran commented on HADOOP-15178:
-----------------------------------------

Do we have a test which tries to wrap an IOE which doesn't have a public string constructor?
I propose

* process an IOE with no string constructor (expect: downgrade wrap)
* process an IOE with a private one

> Generalize NetUtils#wrapException to handle other subclasses with String Constructor.
> -------------------------------------------------------------------------------------
>
>                 Key: HADOOP-15178
>                 URL: https://issues.apache.org/jira/browse/HADOOP-15178
>             Project: Hadoop Common
>          Issue Type: Improvement
>            Reporter: Ajay Kumar
>            Assignee: Ajay Kumar
>            Priority: Major
>         Attachments: HADOOP-15178.001.patch
>
>
> NetUtils#wrapException returns an IOException if exception passed to it is not of type
SocketException,EOFException,NoRouteToHostException,SocketTimeoutException,UnknownHostException,ConnectException,BindException.
> By default, it  should always return instance (subclass of IOException) of same type
unless a String constructor is not available.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org


Mime
View raw message