From d156c785a664017acd77e4216feb0273d9e9cbff Mon Sep 17 00:00:00 2001 From: Aaron Myers Date: Mon, 9 Jun 2014 19:03:37 +0000 Subject: [PATCH] HADOOP-10664. TestNetUtils.testNormalizeHostName fails. Contributed by Aaron T. Myers. git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2@1601483 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 d11065ad57a..25cd70f598e 100644 --- a/hadoop-common-project/hadoop-common/CHANGES.txt +++ b/hadoop-common-project/hadoop-common/CHANGES.txt @@ -186,6 +186,8 @@ Release 2.5.0 - UNRELEASED HADOOP-9099. NetUtils.normalizeHostName fails on domains where UnknownHost resolves to an IP address. (Ivan Mitic via suresh) + 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 995392b50a7..b03afca0911 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 class TestNetUtils { @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 @@ public class TestNetUtils { String gotStr = StringUtils.join(got, ", "); assertEquals(expectStr, gotStr); } -} \ No newline at end of file +}