hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rui Li (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-16910) RpcConfiguration - Improper Cast From Long To Int
Date Fri, 16 Jun 2017 07:46:00 GMT

    [ https://issues.apache.org/jira/browse/HIVE-16910?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16051533#comment-16051533
] 

Rui Li commented on HIVE-16910:
-------------------------------

+1

> RpcConfiguration - Improper Cast From Long To Int
> -------------------------------------------------
>
>                 Key: HIVE-16910
>                 URL: https://issues.apache.org/jira/browse/HIVE-16910
>             Project: Hive
>          Issue Type: Bug
>          Components: Spark
>    Affects Versions: 2.1.1, 3.0.0
>            Reporter: BELUGA BEHR
>            Assignee: BELUGA BEHR
>            Priority: Minor
>         Attachments: HIVE-16910.1.patch
>
>
> {code:title=org.apache.hive.spark.client.rpc.RpcConfiguration}
>   long getConnectTimeoutMs() {
>     String value = config.get(HiveConf.ConfVars.SPARK_RPC_CLIENT_CONNECT_TIMEOUT.varname);
>     return value != null ? Integer.parseInt(value) : DEFAULT_CONF.getTimeVar(
>       HiveConf.ConfVars.SPARK_RPC_CLIENT_CONNECT_TIMEOUT, TimeUnit.MILLISECONDS);
>   }
> {code}
> This method returns a *long* but it is trying to parse the configuration string into
an *int*.
>  {{Integer.parseInt}}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message