Uploaded image for project: 'Tajo (Retired)'
  1. Tajo (Retired)
  2. TAJO-645

Task.Reporter can cause NPE during reporting.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 0.8.0, 0.9.0
    • 0.8.0, 0.9.0
    • Worker
    • None

    Description

      See the title. This problem causes the following error messages.

      014-03-03 19:52:27,680 ERROR worker.Task (Task.java:run(687)) - 
      java.lang.NullPointerException
      	at org.apache.tajo.worker.Task$Reporter$1.run(Task.java:681)
      	at java.lang.Thread.run(Thread.java:724)
      2014-03-03 19:52:27,689 INFO  worker.Task (Task.java:<init>(181)) - Output File Path: hdfs://localhost:52744/tmp/tajo-hyunsik/staging/q_1393843945346_0001/RESULT/part-01-000000
      

      The main cause is to start the report thread in Task before this.context is initialized as follows:

          this.reporter = new Reporter(taskId, masterProxy);
          this.reporter.startCommunicationThread();
          ...
          this.context = new TaskAttemptContext(systemConf, taskId,
              request.getFragments().toArray(new FragmentProto[request.getFragments().size()]), taskDir);
      

      Attachments

        1. TAJO-645.patch
          1 kB
          Hyunsik Choi

        Activity

          People

            hyunsik Hyunsik Choi
            hyunsik Hyunsik Choi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: