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

Varun Saxena commented on YARN-4505:
------------------------------------

[~Naganarasimha],
Ok...
I am not suggesting that there is something wrong written in YARN-4234 either.

What I meant by broken, is that test case was working without changes in 
YARN-4234 but its not working now after YARN-4234.
And I know its only because our Jenkins cannot run test cases in another 
module(MR in this case) if code changes are in some other module(YARN here).
Otherwise this would have been easily caught in YARN-4234. 

This is similar to YARN-4379 which was broken due to HADOOP-12584(a hadoop 
common change) or that MiniYarnCluster change in YARN-2859 which broke a few 
test cases...
We will keep on getting test cases failing like this till we do not get any 
mechanism in Jenkins to somehow run dependent test cases.

I do not have a strong opinion on whether we should fix it in this JIRA or in 
YARN-4234 itself. You can either fix it here or give an addendum patch on 
YARN-4234. Your call. 

> TestJobHistoryEventHandler.testTimelineEventHandling fails on trunk because 
> of NPE
> ----------------------------------------------------------------------------------
>
>                 Key: YARN-4505
>                 URL: https://issues.apache.org/jira/browse/YARN-4505
>             Project: Hadoop YARN
>          Issue Type: Bug
>            Reporter: Tsuyoshi Ozawa
>            Assignee: Naganarasimha G R
>
> https://builds.apache.org/job/Hadoop-Mapreduce-trunk-Java8/824/
> {code}
> Tests run: 13, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 21.163 sec 
> <<< FAILURE! - in 
> org.apache.hadoop.mapreduce.jobhistory.TestJobHistoryEventHandler
> testTimelineEventHandling(org.apache.hadoop.mapreduce.jobhistory.TestJobHistoryEventHandler)
>   Time elapsed: 5.115 sec  <<< ERROR!
> java.lang.NullPointerException: null
>       at 
> org.apache.hadoop.yarn.client.api.impl.TimelineClientImpl.putEntities(TimelineClientImpl.java:331)
>       at 
> org.apache.hadoop.mapreduce.jobhistory.JobHistoryEventHandler.processEventForTimelineServer(JobHistoryEventHandler.java:1015)
>       at 
> org.apache.hadoop.mapreduce.jobhistory.JobHistoryEventHandler.handleEvent(JobHistoryEventHandler.java:586)
>       at 
> org.apache.hadoop.mapreduce.jobhistory.TestJobHistoryEventHandler.handleEvent(TestJobHistoryEventHandler.java:722)
>       at 
> org.apache.hadoop.mapreduce.jobhistory.TestJobHistoryEventHandler.testTimelineEventHandling(TestJobHistoryEventHandler.java:510)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to