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

Hive index creation code throws NPE if index table is null

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.0, 1.2.0, 1.2.1
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      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.patch
          1 kB
          Ashutosh Chauhan
        2. HIVE-10495.2.patch
          1.0 kB
          Bing Li
        3. HIVE-10495.1.patch
          1.0 kB
          Bing Li

          Issue Links

            Activity

              People

              • Assignee:
                libing Bing Li
                Reporter:
                libing Bing Li
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: