From af6dfdf7eec44aff961f8a24a51617950b98a5e5 Mon Sep 17 00:00:00 2001 From: Anu Engineer Date: Fri, 4 Aug 2017 10:32:32 -0700 Subject: [PATCH] HDFS-11935. Ozone: TestStorageContainerManager#testRpcPermission fails when ipv6 address used. Contributed by Yiqun Lin. --- .../src/main/java/org/apache/hadoop/ozone/OzoneClientUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/ozone/OzoneClientUtils.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/ozone/OzoneClientUtils.java index b4767dc79a0..d92f49f555c 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/ozone/OzoneClientUtils.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/ozone/OzoneClientUtils.java @@ -651,7 +651,7 @@ public final class OzoneClientUtils { InetSocketAddress updatedAddr = new InetSocketAddress(addr.getHostString(), listenAddr.getPort()); conf.set(addressKey, - listenAddr.getHostString() + ":" + listenAddr.getPort()); + addr.getHostString() + ":" + listenAddr.getPort()); return updatedAddr; }