HDDS-145. Freon times out because of because of wrong ratis port number in datanode details. Contributed by Mukul Kumar Singh.

This commit is contained in:
Xiaoyu Yao 2018-06-04 09:51:04 -07:00
parent 61fc7f73f2
commit ea7b53fb44

View File

@ -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) {