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

Liyin Liang commented on MAPREDUCE-5623:
----------------------------------------

Hi Jason Lowe,
If the client was redirected to the history server, job.getCounters() will 
return null. Because the .jhist file of a failed job does't contain job level 
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
>
>
> 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)

Reply via email to