From 9e0f026fe46b00926d499741bfe0c43f66e1b6a1 Mon Sep 17 00:00:00 2001 From: Steve Vaughan Jr Date: Fri, 12 Aug 2022 11:21:33 -0400 Subject: [PATCH] Fix typo that disabled test This had initially been intended as a change to the test, since allowing unresolved addresses was the goal. I instead introduced a setting to control when resolution was required. --- .../src/test/java/org/apache/hadoop/hdfs/tools/TestGetConf.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/tools/TestGetConf.java b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/tools/TestGetConf.java index 074c8877958..d717429f495 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/tools/TestGetConf.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/tools/TestGetConf.java @@ -37,6 +37,7 @@ import java.io.IOException; import java.io.PrintStream; import java.net.InetSocketAddress; import java.net.URISyntaxException; +import java.net.UnknownHostException; import java.util.ArrayList; import java.util.Arrays; import java.util.List; @@ -487,6 +488,7 @@ public class TestGetConf { * Test handling of unresolvable journal node hosts. They are still configured assuming that * they will be resolvable in the future. */ + @Test(expected = UnknownHostException.class, timeout = 10000) public void testUnknownJournalNodeHost() throws URISyntaxException, IOException { String journalsBaseUri = "qjournal://jn1:8020;jn2:8020;jn3:8020";