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

NPE dropping permanent function

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.2.0
    • None
    • None

    Description

      To reproduce:
      1. Start a CLI session and create a permanent function.
      2. Exit current CLI session.
      3. Start a new CLI session and drop the function.

      Stack trace:

      FAILED: error during drop function: java.lang.NullPointerException
      	at org.apache.hadoop.hive.ql.exec.Registry.removePersistentFunctionUnderLock(Registry.java:513)
      	at org.apache.hadoop.hive.ql.exec.Registry.unregisterFunction(Registry.java:501)
      	at org.apache.hadoop.hive.ql.exec.FunctionRegistry.unregisterPermanentFunction(FunctionRegistry.java:1532)
      	at org.apache.hadoop.hive.ql.exec.FunctionTask.dropPermanentFunction(FunctionTask.java:228)
      	at org.apache.hadoop.hive.ql.exec.FunctionTask.execute(FunctionTask.java:95)
      	at org.apache.hadoop.hive.ql.exec.Task.executeTask(Task.java:197)
      	at org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(TaskRunner.java:100)
      	at org.apache.hadoop.hive.ql.Driver.launchTask(Driver.java:1860)
      	at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:1564)
      	at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:1316)
      	at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1085)
      	at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1073)
      	at org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(CliDriver.java:232)
      

      Attachments

        1. HIVE-14139.4.patch
          0.9 kB
          Rui Li
        2. HIVE-14139.3.patch
          7 kB
          Rui Li
        3. HIVE-14139.2.patch
          6 kB
          Rui Li
        4. HIVE-14139.1.patch
          0.9 kB
          Rui Li

        Activity

          People

            lirui Rui Li
            lirui Rui Li
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: