[ 
https://issues.apache.org/jira/browse/MAPREDUCE-1397?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Amareshwari Sriramadasu updated MAPREDUCE-1397:
-----------------------------------------------

    Attachment: patch-1397-2.txt

Patch makes the method JvmRunner.kill() synchronized so that if kill is 
in-progress, the caller will wait till kill completes. Making the method 
JvmRunner.kill() synchronized is fine because all the external callers are 
already synchronized on JvmManager. Now patch makes it synchronized on 
JvmRunner also.

> NullPointerException observed during task failures
> --------------------------------------------------
>
>                 Key: MAPREDUCE-1397
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-1397
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>          Components: tasktracker
>    Affects Versions: 0.20.1
>            Reporter: Ramya R
>            Assignee: Amareshwari Sriramadasu
>            Priority: Minor
>             Fix For: 0.22.0
>
>         Attachments: patch-1397-1.txt, patch-1397-2.txt, patch-1397.txt
>
>
> In an environment where many jobs are killed simultaneously, NPEs are 
> observed in the TT/JT logs when a task fails. The situation is aggravated 
> when the taskcontroller.cfg is not configured properly. Below is the 
> exception obtained:
> {noformat}
> INFO org.apache.hadoop.mapred.TaskInProgress: Error from <attempt_ID>:
> java.lang.Throwable: Child Error
>         at org.apache.hadoop.mapred.TaskRunner.run(TaskRunner.java:529)
> Caused by: java.lang.NullPointerException
>         at 
> org.apache.hadoop.mapred.JvmManager$JvmManagerForType.getDetails(JvmManager.java:329)
>         at 
> org.apache.hadoop.mapred.JvmManager$JvmManagerForType.reapJvm(JvmManager.java:315)
>         at 
> org.apache.hadoop.mapred.JvmManager$JvmManagerForType.access$000(JvmManager.java:146)
>         at org.apache.hadoop.mapred.JvmManager.launchJvm(JvmManager.java:109)
>         at org.apache.hadoop.mapred.TaskRunner.run(TaskRunner.java:502)
>  {noformat}

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to