You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Vinod K V (JIRA)" <ji...@apache.org> on 2009/03/02 12:04:12 UTC

[jira] Commented: (HADOOP-5374) NPE in JobTracker.getTasksToSave() method

    [ https://issues.apache.org/jira/browse/HADOOP-5374?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12677955#action_12677955 ] 

Vinod K V commented on HADOOP-5374:
-----------------------------------


This affects heartbeats. I see a lot of the following in the JT's logs.
{code}
2009-02-28 08:12:10,332 INFO org.apache.hadoop.ipc.Server: IPC Server handler 34 on 52000, call heartbeat(org.apache.hadoop.mapred.TaskTrackerStatus@4b68032e, false, false, true, 5832) f
rom <ip:port>: error: java.io.IOException: java.lang.NullPointerException
java.io.IOException: java.lang.NullPointerException
        at org.apache.hadoop.mapred.TaskInProgress.shouldCommit(TaskInProgress.java:420)
        at org.apache.hadoop.mapred.JobTracker.getTasksToSave(JobTracker.java:2585)
        at org.apache.hadoop.mapred.JobTracker.heartbeat(JobTracker.java:2334)
        at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:508) org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:959)
        at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:955)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.Subject.doAs(Subject.java:396)
        at org.apache.hadoop.ipc.Server$Handler.run(Server.java:953)
{code}

An offline discussion with Amareshwari concluded that in getTasksToSave() method, the task's state on the JT should also be checked along with the state as reported by the TT.

> NPE in JobTracker.getTasksToSave() method
> -----------------------------------------
>
>                 Key: HADOOP-5374
>                 URL: https://issues.apache.org/jira/browse/HADOOP-5374
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: mapred
>    Affects Versions: 0.20.0
>            Reporter: Vinod K V
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.