You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Dmitriy Fingerman (Jira)" <ji...@apache.org> on 2025/04/24 19:52:00 UTC

[jira] [Resolved] (HIVE-28785) Fix InetAddress.getByName is not safe with IPv6 stack

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

Dmitriy Fingerman resolved HIVE-28785.
--------------------------------------
    Fix Version/s: Not Applicable
       Resolution: Not A Problem

> Fix InetAddress.getByName is not safe with IPv6 stack
> -----------------------------------------------------
>
>                 Key: HIVE-28785
>                 URL: https://issues.apache.org/jira/browse/HIVE-28785
>             Project: Hive
>          Issue Type: Sub-task
>            Reporter: Dmitriy Fingerman
>            Assignee: Dmitriy Fingerman
>            Priority: Major
>             Fix For: Not Applicable
>
>
> Hive has code occurences as following:
> {code:java}
> InetAddress.getByName(String){code}
>  * Only returns {*}one IP address{*}, even if multiple (IPv4 and IPv6) exist.
>  * May return an IPv4 address even when an IPv6 address is preferred.
> Safer Alternative:
> Use InetAddress.getAllByName(hostname) to get all possible addresses and explicitly choose an IPv6 one if needed.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)