You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Ajay Kumar (JIRA)" <ji...@apache.org> on 2018/02/02 16:26:00 UTC

[jira] [Comment Edited] (HADOOP-15178) Generalize NetUtils#wrapException to handle other subclasses with String Constructor.

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

Ajay Kumar edited comment on HADOOP-15178 at 2/2/18 4:25 PM:
-------------------------------------------------------------

[~stevel@apache.org], I don't understand the proposal clearly. Could you please elaborate 2 points you mentioned. We have test case in {{TesIOUtils#testWrapException}} which tests IOE with no String constructor.  Shall we add one to {{TestNetUtils}} as well?


was (Author: ajayydv):
[~stevel@apache.org], Sorry, i don't understand the proposal clearly. Could you please elaborate 2 points you mentioned. We have test case in {{TesIOUtils#testWrapException}} which tests IOE with no String constructor.  Shall we add one to {{TestNetUtils}} as well?

> 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