From 3a6c8ff8bba1ab532e28e7d9ba04a9731516e725 Mon Sep 17 00:00:00 2001 From: Steve Vaughan Date: Thu, 1 Sep 2022 09:00:15 -0400 Subject: [PATCH] HDFS-16755. TestQJMWithFaults.testUnresolvableHostName() can fail due to unexpected host resolution (#4833) Use ".invalid" domain from IETF RFC 2606 to ensure that the host doesn't resolve. Contributed by Steve Vaughan Jr --- .../apache/hadoop/hdfs/qjournal/client/TestQJMWithFaults.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/qjournal/client/TestQJMWithFaults.java b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/qjournal/client/TestQJMWithFaults.java index 8ead48f6f8a..1999c00f5d9 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/qjournal/client/TestQJMWithFaults.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/qjournal/client/TestQJMWithFaults.java @@ -198,7 +198,7 @@ public class TestQJMWithFaults { public void testUnresolvableHostName() throws Exception { expectedException.expect(UnknownHostException.class); new QuorumJournalManager(conf, - new URI("qjournal://" + "bogus:12345" + "/" + JID), FAKE_NSINFO); + new URI("qjournal://" + "bogus.invalid:12345" + "/" + JID), FAKE_NSINFO); } /**