-
Notifications
You must be signed in to change notification settings - Fork 9.2k
HADOOP-17052. NetUtils.connect() throws unchecked exception (UnresolvedAddressException) causing clients to abort #2036
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
🎊 +1 overall
This message was automatically generated. |
liuml07
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
| socket.close(); | ||
| fail("Should not have connected"); | ||
| } catch (UnknownHostException ce) { | ||
| System.err.println("Got exception: " + ce); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: I know this is following existing test case, but since we now have a logger, we can use this:
LOG.info("Got expected exception", uhe);
Sytem.err in test code is not friendly to test output/log interpretation.
| } | ||
| } catch (SocketTimeoutException ste) { | ||
| throw new ConnectTimeoutException(ste.getMessage()); | ||
| } catch (UnresolvedAddressException ue) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: call it uae?
|
🎊 +1 overall
This message was automatically generated. |
…edAddressException) causing clients to abort (#2036) Contributed by Dhiraj Hegde. Signed-off-by: Mingliang Liu <[email protected]>
…edAddressException) causing clients to abort (#2036) Contributed by Dhiraj Hegde. Signed-off-by: Mingliang Liu <[email protected]>
…edAddressException) causing clients to abort (#2036) Contributed by Dhiraj Hegde. Signed-off-by: Mingliang Liu <[email protected]>
…edAddressException) causing clients to abort (#2036) Contributed by Dhiraj Hegde. Signed-off-by: Mingliang Liu <[email protected]>
…edAddressException) causing clients to abort (#2036) Contributed by Dhiraj Hegde. Signed-off-by: Mingliang Liu <[email protected]>
…edAddressException) causing clients to abort (apache#2036) Contributed by Dhiraj Hegde. Signed-off-by: Mingliang Liu <[email protected]> (cherry picked from commit 9fe4c37) Change-Id: I67d527ad454567fc4b4476de64072d8bdd941d85
NOTICE
Please create an issue in ASF JIRA before opening a pull request,
and you need to set the title of the pull request which starts with
the corresponding JIRA issue number. (e.g. HADOOP-XXXXX. Fix a typo in YYY.)
For more details, please see https://cwiki.apache.org/confluence/display/HADOOP/How+To+Contribute