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

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

If you tweak the method to throw IllegalArgumentException in such instances

java.lang.IllegalArgumentException: Unable to determine IPv4 address of 
fe80:0:0:0:21c:c4ff:fe17:cc46%2
        at org.apache.hadoop.net.DNS.reverseDns(DNS.java:68)
        at org.apache.hadoop.net.DNS.getHosts(DNS.java:158)
        at org.apache.hadoop.net.DNS.getDefaultHost(DNS.java:259)
        at org.apache.hadoop.net.DNS.getDefaultHost(DNS.java:277)
        at org.apache.hadoop.net.DNS.getDefaultHost(DNS.java:256)
        at 
org.apache.hadoop.net.TestDNS.testGetDefaultHostFromDefaultInterface(TestDNS.java:153)

> 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