You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Ashutosh Chauhan (JIRA)" <ji...@apache.org> on 2017/07/06 00:00:45 UTC

[jira] [Commented] (HIVE-10495) Hive index creation code throws NPE if index table is null

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

Ashutosh Chauhan commented on HIVE-10495:
-----------------------------------------

This can still result in NPE in startFunction, if indexTable is null. Also, there is similar logic for endFunction() We shall refactor this null check so that its useful for both function. [~libing] Would you like to update your patch with that change? 

> Hive index creation code throws NPE if index table is null
> ----------------------------------------------------------
>
>                 Key: HIVE-10495
>                 URL: https://issues.apache.org/jira/browse/HIVE-10495
>             Project: Hive
>          Issue Type: Bug
>    Affects Versions: 1.0.0, 1.2.0, 1.2.1
>            Reporter: Bing Li
>            Assignee: Bing Li
>         Attachments: HIVE-10495.1.patch, HIVE-10495.2.patch
>
>
> The stack trace would be:
> Caused by: java.lang.NullPointerException
>         at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.add_index(HiveMetaStore.java:2870)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
>         at java.lang.reflect.Method.invoke(Method.java:611)
>         at org.apache.hadoop.hive.metastore.RetryingHMSHandler.invoke(RetryingHMSHandler.java:102)
>         at $Proxy9.add_index(Unknown Source)
>         at org.apache.hadoop.hive.metastore.HiveMetaStoreClient.createIndex(HiveMetaStoreClient.java:962)



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