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

Liyin Liang commented on MAPREDUCE-5690:
----------------------------------------

The failure of TestLocalMRNotification.testMR is caused by 
UtilsForTests.runJobKill(). During UtilsForTests.runJobKill(), a job with 
KillMapper is submitted to LocalJobRunner. When the job is in RUNNING status, 
kill it by job.killJob(). Then wait the job to complete with 20 seconds timeout.
The problem is job.killJob() intends to interrupt the KillMapper, which will 
sleep for a long time. While if  job.killJob() is invoked before KillMapper is 
launched, the job will continue run the mapper with a long time.


> TestLocalMRNotification.testMR occasionally fails
> -------------------------------------------------
>
>                 Key: MAPREDUCE-5690
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-5690
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>    Affects Versions: 2.2.0
>            Reporter: Liyin Liang
>
> TestLocalMRNotificationis occasionally failing with the error:
> {code}
> -------------------------------------------------------------------------------
> Test set: org.apache.hadoop.mapred.TestLocalMRNotification
> -------------------------------------------------------------------------------
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 24.992 sec 
> <<< FAILURE! - in org.apache.hadoop.mapred.TestLocalMRNotification
> testMR(org.apache.hadoop.mapred.TestLocalMRNotification)  Time elapsed: 
> 24.881 sec  <<< ERROR!
> java.io.IOException: Job cleanup didn't start in 20 seconds
>         at 
> org.apache.hadoop.mapred.UtilsForTests.runJobKill(UtilsForTests.java:685)
>         at 
> org.apache.hadoop.mapred.NotificationTestCase.testMR(NotificationTestCase.java:178)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at junit.framework.TestCase.runTest(TestCase.java:168)
>         at junit.framework.TestCase.runBare(TestCase.java:134)
>         at junit.framework.TestResult$1.protect(TestResult.java:110)
>         at junit.framework.TestResult.runProtected(TestResult.java:128)
>         at junit.framework.TestResult.run(TestResult.java:113)
>         at junit.framework.TestCase.run(TestCase.java:124)
>         at junit.framework.TestSuite.runTest(TestSuite.java:243)
>         at junit.framework.TestSuite.run(TestSuite.java:238)
>         at 
> org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
>         at 
> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:254)
>         at 
> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:149)
>         at 
> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:124)
>         at 
> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)
>         at 
> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
>         at 
> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
> {code}



--
This message was sent by Atlassian JIRA
(v6.1.4#6159)

Reply via email to