bbeaudreault commented on a change in pull request #3272:
URL: https://github.com/apache/hadoop/pull/3272#discussion_r684155669
##########
File path:
hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/net/NetUtils.java
##########
@@ -589,7 +589,7 @@ public static void connect(Socket socket,
} catch (SocketTimeoutException ste) {
throw new ConnectTimeoutException(ste.getMessage());
} catch (UnresolvedAddressException uae) {
- throw new UnknownHostException(uae.getMessage());
+ throw new UnknownHostException(endpoint.toString());
Review comment:
Thank you for taking a look. I considered this, but a UHE cannot have a
message. It only as has no args constructor so it cannot be created with a
message. There's also no setMessage method as far as I can tell, so can't be
added after.
https://docs.oracle.com/javase/8/docs/api/java/net/UnknownHostException.html
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]