Uploaded image for project: 'Tajo'
  1. Tajo
  2. TAJO-832

NPE occurs when Exception's message is null in Task.

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.9.0
    • Component/s: None
    • Labels:
      None

      Description

      NPE occurs when a query runs and throws Exception.

      2014-05-16 16:28:42,964 INFO org.apache.tajo.worker.TaskAttemptContext: Query status of ta_1400224958565_0002_000001_000018_00 is changed to TA_FAILED
      2014-05-16 16:28:42,966 ERROR org.apache.tajo.worker.TaskRunner:
      java.lang.NullPointerException
              at org.apache.tajo.ipc.TajoWorkerProtocol$TaskFatalErrorReport$Builder.setErrorMessage(TajoWorkerProtocol.java:5785)
              at org.apache.tajo.worker.Task.run(Task.java:411)
              at org.apache.tajo.worker.TaskRunner$1.run(TaskRunner.java:391)
              at java.lang.Thread.run(Thread.java:744)
      2014-05-16 16:28:42,966 INFO org.apache.tajo.worker.TaskRunner: Request GetTask: eb_1400224958565_0002_000001,container_1400224958565_0002_01_000151
      
      1. TAJO-832.patch
        0.8 kB
        Hyoungjun Kim

        Activity

        Hide
        hudson Hudson added a comment -

        FAILURE: Integrated in Tajo-master-build #221 (See https://builds.apache.org/job/Tajo-master-build/221/)
        TAJO-832: NPE occurs when Exception's message is null in Task. (Hyoungjun Kim via hyunsik) (hyunsik: rev 76a5e077cd6300afd9c23014f72443a624789291)

        • tajo-core/src/main/java/org/apache/tajo/worker/Task.java
        • CHANGES
        Show
        hudson Hudson added a comment - FAILURE: Integrated in Tajo-master-build #221 (See https://builds.apache.org/job/Tajo-master-build/221/ ) TAJO-832 : NPE occurs when Exception's message is null in Task. (Hyoungjun Kim via hyunsik) (hyunsik: rev 76a5e077cd6300afd9c23014f72443a624789291) tajo-core/src/main/java/org/apache/tajo/worker/Task.java CHANGES
        Hide
        hyunsik Hyunsik Choi added a comment -

        committed it to master branch.

        Show
        hyunsik Hyunsik Choi added a comment - committed it to master branch.
        Hide
        hyunsik Hyunsik Choi added a comment -

        +1

        The fix is trivial and reasonable.

        Show
        hyunsik Hyunsik Choi added a comment - +1 The fix is trivial and reasonable.
        Hide
        hjkim Hyoungjun Kim added a comment -

        There is no a TestCase in this patch because it is trivial changing and difficult to generate error status in the TestCase.

        Show
        hjkim Hyoungjun Kim added a comment - There is no a TestCase in this patch because it is trivial changing and difficult to generate error status in the TestCase.

          People

          • Assignee:
            hjkim Hyoungjun Kim
            Reporter:
            hjkim Hyoungjun Kim
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development