Skip to content

Commit

Permalink
HDFS-16755. TestQJMWithFaults.testUnresolvableHostName() can fail due…
Browse files Browse the repository at this point in the history
… 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
  • Loading branch information
snmvaughan authored Sep 1, 2022
1 parent 33edbed commit 2dd8b13
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ public void testRecoverAfterDoubleFailures() throws Exception {
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);
}

/**
Expand Down

0 comments on commit 2dd8b13

Please sign in to comment.