hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ewan Higgs (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HADOOP-12476) TestDNS.testLookupWithoutHostsFallback failing
Date Tue, 13 Dec 2016 09:46:58 GMT

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

Ewan Higgs updated HADOOP-12476:
--------------------------------
    Attachment: WhatsMyDNS.java

I think it's best to add something to the failure message can help people get past the error
message while someone figures out if it's possible to fix entirely programmatically.

I've attached a minimal test case to demonstrate the issue.

{code}
$ javac -g WhatsMyDNS.java
# local dns is not active:
$ systemctl status -o short-precise bind9 | grep 'Active:'
   Active: inactive (dead) since Tue 2016-12-13 10:18:02 CET; 15s ago
$ java -Djava.net.preferIPv4Stack=true WhatsMyDNS 
Test Lookup with Hosts Fallback...
Removed some guava code. might be adding an ip address.. "localhost"
Hostname is "localhost" and we don't want "-DUMMY_HOSTNAME"
Test Lookup without Hosts Fallback...
Hostname is "-DUMMY_HOSTNAME" and we want "-DUMMY_HOSTNAME"
[10:18:30] ehigg90120@U2604089H0498[0] ~/src
$ sudo systemctl start bind9
$ systemctl status -o short-precise bind9 | grep 'Active:'
   Active: active (running) since Tue 2016-12-13 10:18:34 CET; 7s ago
$ java -Djava.net.preferIPv4Stack=true WhatsMyDNS 
Test Lookup with Hosts Fallback...
Hostname is "localhost" and we don't want "-DUMMY_HOSTNAME"
Test Lookup without Hosts Fallback...
Hostname is "localhost" and we want "-DUMMY_HOSTNAME"
{code}

The issue appears to be in reverseDns where InitialDirContext is happy to make requests against
the local DNS. I haven't seen how to stop if from doing that. Even if I did, it's not clear
that we want this in the code since people may very well want local dns daemons running on
their nodes. 

> TestDNS.testLookupWithoutHostsFallback failing
> ----------------------------------------------
>
>                 Key: HADOOP-12476
>                 URL: https://issues.apache.org/jira/browse/HADOOP-12476
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: net, test
>    Affects Versions: 2.8.0, 3.0.0-alpha1
>         Environment: Jenkins
>            Reporter: Steve Loughran
>            Assignee: Steve Loughran
>            Priority: Minor
>         Attachments: WhatsMyDNS.java
>
>
> Presumably triggered by HADOOP-12449, one of the jenkins patch runs has failed in {{TestDNS.testLookupWithoutHostsFallback}},




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org


Mime
View raw message