You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@tajo.apache.org by "Hyunsik Choi (JIRA)" <ji...@apache.org> on 2014/03/03 12:46:24 UTC

[jira] [Commented] (TAJO-645) Task.Reporter can cause NPE during reporting.

    [ https://issues.apache.org/jira/browse/TAJO-645?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13917978#comment-13917978 ] 

Hyunsik Choi commented on TAJO-645:
-----------------------------------

Created a review request against branch master in reviewboard 
https://reviews.apache.org/r/18682/


> Task.Reporter can cause NPE during reporting.
> ---------------------------------------------
>
>                 Key: TAJO-645
>                 URL: https://issues.apache.org/jira/browse/TAJO-645
>             Project: Tajo
>          Issue Type: Bug
>          Components: worker
>    Affects Versions: 0.8-incubating, 1.0-incubating
>            Reporter: Hyunsik Choi
>            Assignee: Hyunsik Choi
>            Priority: Minor
>             Fix For: 0.8-incubating, 1.0-incubating
>
>         Attachments: TAJO-645.patch
>
>
> See the title. This problem causes the following error messages.
> {noformat}
> 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
> {noformat}
> The main cause is to start the report thread in Task before this.context is initialized as follows:
> {code:java}
>     this.reporter = new Reporter(taskId, masterProxy);
>     this.reporter.startCommunicationThread();
>     ...
>     this.context = new TaskAttemptContext(systemConf, taskId,
>         request.getFragments().toArray(new FragmentProto[request.getFragments().size()]), taskDir);
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)