Skip to content

Commit

Permalink
Update hadoop-hdds/container-service/src/main/java/org/apache/hadoop/…
Browse files Browse the repository at this point in the history
…ozone/container/common/helpers/ContainerUtils.java

Co-authored-by: Siyao Meng <50227127+smengcl@users.noreply.github.com>
  • Loading branch information
ptlrs and smengcl authored Jan 10, 2025
1 parent 4afc551 commit f1fdd50
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ public static synchronized DatanodeDetails readDatanodeDetailsFrom(File path)
InetAddress inetAddress = InetAddress.getByName(datanodeDetails.getHostName());

if (!inetAddress.getHostAddress().equals(datanodeDetails.getIpAddress())) {
LOG.warn("Resolved IP address '{}' differs from the persisted IP address '{}' for the datanode '{}'",
LOG.warn("Resolved IP address '{}' differs from the persisted IP address '{}' for datanode '{}'. Will use the resolved IP address from now on",
inetAddress.getHostAddress(), datanodeDetails.getIpAddress(), datanodeDetails.getHostName());
datanodeDetails.setIpAddress(inetAddress.getHostAddress());
}
Expand Down

0 comments on commit f1fdd50

Please sign in to comment.