HDFS-11935. Ozone: TestStorageContainerManager#testRpcPermission fails when ipv6 address used. Contributed by Yiqun Lin.

This commit is contained in:
Anu Engineer 2017-08-04 10:32:32 -07:00 committed by Owen O'Malley
parent ccc1607424
commit 23dee0f123
1 changed files with 1 additions and 1 deletions

View File

@ -651,7 +651,7 @@ public final class OzoneClientUtils {
InetSocketAddress updatedAddr = new InetSocketAddress(addr.getHostString(), InetSocketAddress updatedAddr = new InetSocketAddress(addr.getHostString(),
listenAddr.getPort()); listenAddr.getPort());
conf.set(addressKey, conf.set(addressKey,
listenAddr.getHostString() + ":" + listenAddr.getPort()); addr.getHostString() + ":" + listenAddr.getPort());
return updatedAddr; return updatedAddr;
} }