[ https://issues.apache.org/jira/browse/YARN-4505?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15070941#comment-15070941 ]
Varun Saxena commented on YARN-4505: ------------------------------------ Well the NPE is due to TimelineWriter being null and class TimelineWriter and its implementations have been added in YARN-4234. So its quite clearly broken because of YARN-4234. Refer to code below. NPE is thrown at return statement. {code} @Override public TimelinePutResponse putEntities( TimelineEntity... entities) throws IOException, YarnException { return timelineWriter.putEntities(entities); } {code} > 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)