kerneltime commented on a change in pull request #3186:
URL: https://github.com/apache/ozone/pull/3186#discussion_r840848802
##########
File path:
hadoop-hdds/common/src/main/java/org/apache/hadoop/hdds/ratis/RatisHelper.java
##########
@@ -96,7 +100,13 @@ public static UUID toDatanodeId(RaftProtos.RaftPeerProto
peerId) {
}
private static String toRaftPeerAddress(DatanodeDetails id, Port.Name port) {
- return id.getIpAddress() + ":" + id.getPort(port).getValue();
+ if (datanodeUseHostName()) {
+ LOG.debug("Datanode is using hostname for raft peer address");
Review comment:
Might as well print the actual value calculated in the debug log.
--
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]