[ https://issues.apache.org/jira/browse/HDFS-16688?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17579012#comment-17579012 ]
ASF GitHub Bot commented on HDFS-16688: --------------------------------------- snmvaughan commented on code in PR #4725: URL: https://github.com/apache/hadoop/pull/4725#discussion_r944566985 ########## hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/qjournal/client/IPCLoggerChannelMetrics.java: ########## @@ -104,7 +104,12 @@ static IPCLoggerChannelMetrics create(IPCLoggerChannel ch) { private static String getName(IPCLoggerChannel ch) { InetSocketAddress addr = ch.getRemoteAddress(); - String addrStr = addr.getAddress().getHostAddress(); + String addrStr; + if (addr.isUnresolved()) { + addrStr = addr.getHostName(); Review Comment: As before... just string formatting. > Unresolved Hosts during startup are not synced by JournalNodes > -------------------------------------------------------------- > > Key: HDFS-16688 > URL: https://issues.apache.org/jira/browse/HDFS-16688 > Project: Hadoop HDFS > Issue Type: Improvement > Components: journal-node > Environment: Running in Kubernetes using Java 11, with an HA > configuration. > Reporter: Steve Vaughan > Assignee: Steve Vaughan > Priority: Major > Labels: pull-request-available > > During the JournalNode startup, it builds the list of servers in the > JournalNode set, ignoring hostnames that cannot be resolved. In environments > with dynamic IP address allocations this means that the JournalNodeSyncer > will never sync with hosts that aren't resolvable during startup. -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org