hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Chansler (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HADOOP-3612) NPE if the system can't determine its own name and you go DNS.getDefaultHost(null)
Date Fri, 08 Aug 2008 18:13:44 GMT

     [ https://issues.apache.org/jira/browse/HADOOP-3612?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Robert Chansler updated HADOOP-3612:
------------------------------------

    Component/s: dfs

> NPE if the system can't determine its own name and you go DNS.getDefaultHost(null)
> ----------------------------------------------------------------------------------
>
>                 Key: HADOOP-3612
>                 URL: https://issues.apache.org/jira/browse/HADOOP-3612
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: dfs
>    Affects Versions: 0.18.0
>            Reporter: Steve Loughran
>            Assignee: Steve Loughran
>            Priority: Minor
>
> 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)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message