Restore UnknownHostException with required
With the introduction of "dfs.namenode.edits.qjournals.resolution-required" (defaults to true) we can restore the original check for a thrown exception. Also update the hostname to avoid incidental local matches during lookup.
This commit is contained in:
parent
9e0f026fe4
commit
1a2b49c340
|
@ -29,6 +29,7 @@ import java.lang.reflect.InvocationTargetException;
|
||||||
import java.net.InetSocketAddress;
|
import java.net.InetSocketAddress;
|
||||||
import java.net.URI;
|
import java.net.URI;
|
||||||
import java.net.URISyntaxException;
|
import java.net.URISyntaxException;
|
||||||
|
import java.net.UnknownHostException;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.Random;
|
import java.util.Random;
|
||||||
|
@ -191,8 +192,7 @@ public class TestQJMWithFaults {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Expect an unresolved address if a hostname can't be resolved, but allowing the QJM to be
|
* Expect {@link UnknownHostException} if a hostname can't be resolved.
|
||||||
* configured.
|
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void testUnresolvableHostName() throws Exception {
|
public void testUnresolvableHostName() throws Exception {
|
||||||
|
|
Loading…
Reference in New Issue