[ 
https://issues.apache.org/jira/browse/MAPREDUCE-408?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12731813#action_12731813
 ] 

Ravi Gummadi commented on MAPREDUCE-408:
----------------------------------------

The issue is reproducible with trunk if we add Thread.sleep(5000) in 
runJobAndSetProcessHandle() before the assert statements for checking if the 
child processes are alive. The problem was that fs was not set in Mappers, thus 
signalFile creation was not checked causing the map task to finish 
immediately(in case of failing mapper and succeeding mapper.

> TestKillSubProcesses fails with assertion failure sometimes
> -----------------------------------------------------------
>
>                 Key: MAPREDUCE-408
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-408
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>            Reporter: Amareshwari Sriramadasu
>            Assignee: Ravi Gummadi
>         Attachments: MR-408.patch, MR-408.v1.patch
>
>
> org.apache.hadoop.mapred.TestKillSubProcesses.testJobKillFailAndSucceed fails 
> sometimes with following error Message:
> {noformat}
> Unexpected: The subprocess at level 3 in the subtree is not alive before Job 
> completion
> {noformat}
> Stacktrace
> {noformat}
> junit.framework.AssertionFailedError: Unexpected: The subprocess at level 3 
> in the subtree is not alive before Job completion
>       at 
> org.apache.hadoop.mapred.TestKillSubProcesses.runJobAndSetProcessHandle(TestKillSubProcesses.java:221)
>       at 
> org.apache.hadoop.mapred.TestKillSubProcesses.runFailingJobAndValidate(TestKillSubProcesses.java:112)
>       at 
> org.apache.hadoop.mapred.TestKillSubProcesses.runTests(TestKillSubProcesses.java:327)
>       at 
> org.apache.hadoop.mapred.TestKillSubProcesses.testJobKillFailAndSucceed(TestKillSubProcesses.java:310)
> {noformat}
> one such failure at 
> http://hudson.zones.apache.org/hudson/job/Hadoop-Patch-vesta.apache.org/495/testReport/org.apache.hadoop.mapred/TestKillSubProcesses/testJobKillFailAndSucceed/

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

Reply via email to