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

Dmitriy Fingerman updated HIVE-28782:
-------------------------------------
    Description: 
Hive code has the below locations which use unsafe methods of handling 
addresses in a dual-stack or IPv6-only world. 
{code:java}
final String[] tokens = instanceUri.split(":");
final String hostname = tokens[0];
final int port = Integer.parseInt(tokens[1]);{code}
 * HS2ActivePassiveHARegistry.updateEndpoint
 * ZooKeeperHiveClientHelper.updateParamsWithZKServerNode

Similar issue in Hadoop:

https://issues.apache.org/jira/browse/HADOOP-12122

  was:
Hive code has the below locations which use unsafe methods of handling 
addresses in a dual-stack or IPv6-only world. 
 * HS2ActivePassiveHARegistry.updateEndpoint
 * ZooKeeperHiveClientHelper.updateParamsWithZKServerNode

Similar issue in Hadoop:

https://issues.apache.org/jira/browse/HADOOP-12122


> Fix Hive should avoid unsafe split and append on fields that might be IPv6 
> literals
> -----------------------------------------------------------------------------------
>
>                 Key: HIVE-28782
>                 URL: https://issues.apache.org/jira/browse/HIVE-28782
>             Project: Hive
>          Issue Type: Sub-task
>            Reporter: Dmitriy Fingerman
>            Priority: Major
>
> Hive code has the below locations which use unsafe methods of handling 
> addresses in a dual-stack or IPv6-only world. 
> {code:java}
> final String[] tokens = instanceUri.split(":");
> final String hostname = tokens[0];
> final int port = Integer.parseInt(tokens[1]);{code}
>  * HS2ActivePassiveHARegistry.updateEndpoint
>  * ZooKeeperHiveClientHelper.updateParamsWithZKServerNode
> Similar issue in Hadoop:
> https://issues.apache.org/jira/browse/HADOOP-12122



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

Reply via email to