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

Steve Loughran commented on HADOOP-3619:
----------------------------------------

The stack trace 
Testcase: testGetDefaultHostFromDefaultInterface took 0.008 sec
        Caused an ERROR
3
java.lang.ArrayIndexOutOfBoundsException: 3
        at org.apache.hadoop.net.DNS.reverseDns(DNS.java:66)
        at org.apache.hadoop.net.DNS.getHosts(DNS.java:153)
        at org.apache.hadoop.net.DNS.getDefaultHost(DNS.java:254)
        at org.apache.hadoop.net.DNS.getDefaultHost(DNS.java:272)
        at org.apache.hadoop.net.DNS.getDefaultHost(DNS.java:251)
        at 
org.apache.hadoop.net.TestDNS.testGetDefaultHostFromDefaultInterface(TestDNS.java:153)

This was raised when examining eth0, which is:
eth0      Link encap:Ethernet  HWaddr 00:1C:C4:17:CC:46  
          inet addr:16.25.171.118  Bcast:16.25.171.255  Mask:255.255.252.0
          inet6 addr: fe80::21c:c4ff:fe17:cc46/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1




> DNS.getHosts triggers an ArrayIndexOutOfBoundsException in reverseDNS if one 
> of the interfaces is IPv6
> ------------------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-3619
>                 URL: https://issues.apache.org/jira/browse/HADOOP-3619
>             Project: Hadoop Core
>          Issue Type: Bug
>            Reporter: Steve Loughran
>
> reverseDNS tries to split a host address string by ".", and so fails if ":" 
> is the separator, as it is in IPv6. When it tries to access the parts of the 
> address, a stack trace is seen.

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

Reply via email to