From d4b9a04840784f7e5c7b8cca1d3abbc4b88a7793 Mon Sep 17 00:00:00 2001 From: Aaron Myers Date: Mon, 9 Jun 2014 18:53:19 +0000 Subject: [PATCH] HADOOP-10664. TestNetUtils.testNormalizeHostName fails. Contributed by Aaron T. Myers. git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1601478 13f79535-47bb-0310-9956-ffa450edef68 --- hadoop-common-project/hadoop-common/CHANGES.txt | 2 ++ .../src/test/java/org/apache/hadoop/net/TestNetUtils.java | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/hadoop-common-project/hadoop-common/CHANGES.txt b/hadoop-common-project/hadoop-common/CHANGES.txt index 842f529ece..4b3a6b467a 100644 --- a/hadoop-common-project/hadoop-common/CHANGES.txt +++ b/hadoop-common-project/hadoop-common/CHANGES.txt @@ -536,6 +536,8 @@ Release 2.5.0 - UNRELEASED HADOOP-10647. String Format Exception in SwiftNativeFileSystemStore.java. (Gene Kim via stevel) + HADOOP-10664. TestNetUtils.testNormalizeHostName fails. (atm) + Release 2.4.1 - UNRELEASED INCOMPATIBLE CHANGES diff --git a/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/net/TestNetUtils.java b/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/net/TestNetUtils.java index 995392b50a..b03afca091 100644 --- a/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/net/TestNetUtils.java +++ b/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/net/TestNetUtils.java @@ -605,7 +605,7 @@ public void testCanonicalUriWithNoPortNoDefaultPort() { @Test public void testNormalizeHostName() { List hosts = Arrays.asList(new String[] {"127.0.0.1", - "localhost", "3w.org", "UnknownHost123"}); + "localhost", "1.kanyezone.appspot.com", "UnknownHost123"}); List normalizedHosts = NetUtils.normalizeHostNames(hosts); // when ipaddress is normalized, same address is expected in return assertEquals(normalizedHosts.get(0), hosts.get(0)); @@ -636,4 +636,4 @@ private void assertBetterArrayEquals(T[] expect, T[]got) { String gotStr = StringUtils.join(got, ", "); assertEquals(expectStr, gotStr); } -} \ No newline at end of file +}