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

Naganarasimha G R commented on YARN-4505:
-----------------------------------------

Obviously the stack trace is also showing the same code.
My intention to say its not directly induced because this test case failure is 
across the module and hence it would have not captured in that jira and 
secondly it would be assumed that the TimelineClient.start needs to be called 
before using it but the test case was not ensuring that.


> 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