hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tony Kew (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HADOOP-8568) DNS#reverseDns fails on IPv6 addresses
Date Mon, 20 Aug 2012 20:23:38 GMT

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

Tony Kew updated HADOOP-8568:
-----------------------------

    Attachment: HADOOP-8568.patch

The existing DNS.java tests fail for IPv6
addresses.
This only fixes IPv6 reverse resolution.
IPv6 tests still fail with IPv6 nameservers (at least partly due to problems in Sun's JNDI.)

                
> DNS#reverseDns fails on IPv6 addresses
> --------------------------------------
>
>                 Key: HADOOP-8568
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8568
>             Project: Hadoop Common
>          Issue Type: Bug
>    Affects Versions: 2.0.0-alpha
>            Reporter: Eli Collins
>            Assignee: Karthik Kambatla
>              Labels: newbie
>         Attachments: HADOOP-8568.patch
>
>
> DNS#reverseDns assumes hostIp is a v4 address (4 parts separated by dots), blows up if
given a v6 address:
> {noformat}
> Caused by: java.lang.ArrayIndexOutOfBoundsException: 3
>         at org.apache.hadoop.net.DNS.reverseDns(DNS.java:79)
>         at org.apache.hadoop.net.DNS.getHosts(DNS.java:237)
>         at org.apache.hadoop.net.DNS.getDefaultHost(DNS.java:340)
>         at org.apache.hadoop.net.DNS.getDefaultHost(DNS.java:358)
>         at org.apache.hadoop.net.DNS.getDefaultHost(DNS.java:337)
>         at org.apache.hadoop.hbase.master.HMaster.<init>(HMaster.java:235)
>         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>         at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
>         at org.apache.hadoop.hbase.master.HMaster.constructMaster(HMaster.java:1649)
> {noformat}

--
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