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

skip counter update when RunningJob.getCounters() returns null

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.6.0
    • 0.7.0
    • Query Processor
    • None
    • Reviewed

    Description

      Under heavy load circumstances on some Hadoop versions, we may get a NPE from trying to dereference a null Counters object. I don't have a unit test which can reproduce it, but here's an example stack from a production cluster we saw today:

      10/06/21 13:01:10 ERROR exec.ExecDriver: Ended Job = job_201005200457_701060 with exception 'java.lang.NullPointerException(null)'
      java.lang.NullPointerException
      at org.apache.hadoop.hive.ql.exec.Operator.updateCounters(Operator.java:999)
      at org.apache.hadoop.hive.ql.exec.ExecDriver.updateCounters(ExecDriver.java:503)
      at org.apache.hadoop.hive.ql.exec.ExecDriver.progress(ExecDriver.java:390)
      at org.apache.hadoop.hive.ql.exec.ExecDriver.execute(ExecDriver.java:697)
      at org.apache.hadoop.hive.ql.exec.Task.executeTask(Task.java:107)
      at org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(TaskRunner.java:55)
      at org.apache.hadoop.hive.ql.exec.TaskRunner.run(TaskRunner.java:47)

      Attachments

        1. HIVE-1422.3.patch
          10 kB
          Ning Zhang
        2. 1422.2.patch
          9 kB
          Joydeep Sen Sarma
        3. 1422.2.patch
          8 kB
          Joydeep Sen Sarma
        4. HIVE-1422.1.patch
          1.0 kB
          John Sichi

        Issue Links

          Activity

            People

              jsensarma Joydeep Sen Sarma
              jvs John Sichi
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: