[
https://issues.apache.org/jira/browse/MAPREDUCE-5623?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jason Lowe updated MAPREDUCE-5623:
----------------------------------
Attachment: MAPREDUCE-5623.2.patch
Thanks for the analysis, [~liangly]! That's exactly what's happening. I was
able to reproduce the problem reliably by adding a sleep in testFailedJob after
awaiting completion but before getting the counters.
Since the test is not trying to test job counters but rather simply using the
counters as a way of verifying the job failed, changed the test to check the
job status rather than the counters.
> TestJobCleanup fails because of RejectedExecutionException and NPE.
> -------------------------------------------------------------------
>
> Key: MAPREDUCE-5623
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-5623
> Project: Hadoop Map/Reduce
> Issue Type: Bug
> Reporter: Tsuyoshi OZAWA
> Assignee: Tsuyoshi OZAWA
> Attachments: MAPREDUCE-5623.1.patch, MAPREDUCE-5623.2.patch
>
>
> org.apache.hadoop.mapred.TestJobCleanup can fail because of
> RejectedExecutionException by NonAggregatingLogHandler. This problem is
> described in YARN-1409. TestJobCleanup can still fail after fixing
> RejectedExecutionException, because of NPE by Job#getCounters()'s returning
> null.
> {code}
> -------------------------------------------------------------------------------
> Test set: org.apache.hadoop.mapred.TestJobCleanup
> -------------------------------------------------------------------------------
> Tests run: 3, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 140.933 sec
> <<< FAILURE! - in org.apache.hadoop.mapred.TestJobCleanup
> testCustomAbort(org.apache.hadoop.mapred.TestJobCleanup) Time elapsed:
> 31.068 sec <<< ERROR!
> java.lang.NullPointerException: null
> at
> org.apache.hadoop.mapred.TestJobCleanup.testFailedJob(TestJobCleanup.java:199)
> at
> org.apache.hadoop.mapred.TestJobCleanup.testCustomAbort(TestJobCleanup.java:296)
> {code}
--
This message was sent by Atlassian JIRA
(v6.1.4#6159)