Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-10495

Hive index creation code throws NPE if index table is null

Log workAgile BoardRank to TopRank to BottomBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.0.0, 1.2.0, 1.2.1
    • None
    • None
    • None

    Description

      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)

      Attachments

        1. HIVE-10495.1.patch
          1.0 kB
          Bing Li
        2. HIVE-10495.2.patch
          1.0 kB
          Bing Li
        3. HIVE-10495.patch
          1 kB
          Ashutosh Chauhan

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            libing Bing Li Assign to me
            libing Bing Li
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment