hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Karthik Kambatla (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-9369) DNS#reverseDns() can return hostname with . appended at the end
Date Wed, 06 Mar 2013 05:36:12 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-9369?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13594394#comment-13594394

Karthik Kambatla commented on HADOOP-9369:

Ran a 2-node cluster, one with the patch and one without. Logged the hostname: the one with
the patch doesn't have a '.' while the other one has.

If one were to write a unit test for this, we should either (1) mock InitialDirContext's getAttributes
method (it is not static either) or (2) write a singleton wrapper for InitialDirContext and
modify the method in the context of the test. Manual verification validates the fix.
> DNS#reverseDns() can return hostname with . appended at the end
> ---------------------------------------------------------------
>                 Key: HADOOP-9369
>                 URL: https://issues.apache.org/jira/browse/HADOOP-9369
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: net
>    Affects Versions: 1.1.1, 2.0.3-alpha, 0.23.5
>            Reporter: Karthik Kambatla
>            Assignee: Karthik Kambatla
>         Attachments: hadoop-9369-branch1.patch, hadoop-9369.patch
> DNS#reverseDns uses javax.naming.InitialDirContext to do a reverse DNS lookup. This can
sometimes return hostnames with a . at the end.
> Saw this happen on hadoop-1: two nodes with tasktracker.dns.interface set to eth0

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

View raw message