hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Loughran (JIRA)" <j...@apache.org>
Subject [jira] [Work stopped] (HDFS-116) NPE if the system can't determine its own name and you go DNS.getDefaultHost(null)
Date Sat, 28 Jul 2012 00:07:35 GMT

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

Work on HDFS-116 stopped by Steve Loughran.

> NPE if the system can't determine its own name and you go DNS.getDefaultHost(null)
> ----------------------------------------------------------------------------------
>
>                 Key: HDFS-116
>                 URL: https://issues.apache.org/jira/browse/HDFS-116
>             Project: Hadoop HDFS
>          Issue Type: Bug
>            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.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message