diff --git a/hadoop-hdds/common/src/main/java/org/apache/ratis/RatisHelper.java b/hadoop-hdds/common/src/main/java/org/apache/ratis/RatisHelper.java index 20356b39805..df831161ca4 100644 --- a/hadoop-hdds/common/src/main/java/org/apache/ratis/RatisHelper.java +++ b/hadoop-hdds/common/src/main/java/org/apache/ratis/RatisHelper.java @@ -49,12 +49,12 @@ public interface RatisHelper { static String toRaftPeerIdString(DatanodeDetails id) { return id.getUuidString() + "_" + - id.getPort(DatanodeDetails.Port.Name.RATIS); + id.getPort(DatanodeDetails.Port.Name.RATIS).getValue(); } static String toRaftPeerAddressString(DatanodeDetails id) { return id.getIpAddress() + ":" + - id.getPort(DatanodeDetails.Port.Name.RATIS); + id.getPort(DatanodeDetails.Port.Name.RATIS).getValue(); } static RaftPeerId toRaftPeerId(DatanodeDetails id) {