diff --git a/hadoop-hdfs-project/hadoop-hdfs-httpfs/src/test/java/org/apache/hadoop/lib/servlet/TestHostnameFilter.java b/hadoop-hdfs-project/hadoop-hdfs-httpfs/src/test/java/org/apache/hadoop/lib/servlet/TestHostnameFilter.java index f30ab0c0cd..f3a2a5ad65 100644 --- a/hadoop-hdfs-project/hadoop-hdfs-httpfs/src/test/java/org/apache/hadoop/lib/servlet/TestHostnameFilter.java +++ b/hadoop-hdfs-project/hadoop-hdfs-httpfs/src/test/java/org/apache/hadoop/lib/servlet/TestHostnameFilter.java @@ -47,7 +47,7 @@ public void hostname() throws Exception { @Override public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse) throws IOException, ServletException { - Assert.assertEquals(HostnameFilter.get(), "localhost"); + Assert.assertTrue(HostnameFilter.get().contains("localhost")); invoked.set(true); } }; diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt index eb85455e58..8e64602b42 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt +++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt @@ -367,6 +367,8 @@ Release 0.23.1 - UNRELEASED HDFS-2837. mvn javadoc:javadoc not seeing LimitedPrivate class (revans2 via tucu) + HDFS-2840. TestHostnameFilter should work with localhost or localhost.localdomain (tucu) + Release 0.23.0 - 2011-11-01 INCOMPATIBLE CHANGES