shahrs87 commented on code in PR #6916:
URL: https://github.com/apache/hadoop/pull/6916#discussion_r1663310288
##########
hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/Server.java:
##########
@@ -2516,13 +2509,15 @@ public int readAndProcess() throws IOException,
InterruptedException {
}
if (!RpcConstants.HEADER.equals(dataLengthBuffer)) {
+ final String hostName = addr == null ? this.hostAddress :
addr.getHostName();
Review Comment:
In what case addr would be null? We were not handling `addr == null` edge
case before. Wondering what has changed.
--
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]