Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Implemented
-
2.1.1-beta, 3.0.0-alpha1
-
None
-
None
-
Looking at the source this has been fixed: checks for null trigger {{UnknownHostException}}
Description
In a test case that I am newly writing, on my infamous "home machine with broken DNS", I cant call getByName(null) without seeing a stack trace:
Testcase: testNullInterface took 0.014 sec
Caused an ERROR
null
java.lang.NullPointerException
at java.net.NetworkInterface.getByName(NetworkInterface.java:226)
at org.apache.hadoop.net.DNS.getIPs(DNS.java:94)
at org.apache.hadoop.net.DNS.getHosts(DNS.java:141)
at org.apache.hadoop.net.DNS.getDefaultHost(DNS.java:218)
at org.apache.hadoop.net.DNS.getDefaultHost(DNS.java:235)
at org.apache.hadoop.net.TestDNS.testNullInterface(TestDNS.java:62)
Attachments
Issue Links
- relates to
-
HADOOP-3426 Datanode does not start up if the local machines DNS isnt working right and dfs.datanode.dns.interface==default
- Closed