[
https://issues.apache.org/jira/browse/MAPREDUCE-6142?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Zhijie Shen updated MAPREDUCE-6142:
-----------------------------------
Attachment: MAPREDUCE-6142.1.patch
The problem is that After MAPREDUCE-6018, emitting the job history data is
disabled by default. In the test case, we need to enable it explicitly.
Straigtforward fix by setting the flag to true.
> Test failure in TestJobHistoryEventHandler and TestMRTimelineEventHandling
> --------------------------------------------------------------------------
>
> Key: MAPREDUCE-6142
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-6142
> Project: Hadoop Map/Reduce
> Issue Type: Sub-task
> Affects Versions: 2.6.0
> Reporter: Zhijie Shen
> Assignee: Zhijie Shen
> Attachments: MAPREDUCE-6142.1.patch
>
>
> {code}
> Running org.apache.hadoop.mapreduce.jobhistory.TestJobHistoryEventHandler
> Tests run: 12, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 28.122 sec
> <<< FAILURE! - in
> org.apache.hadoop.mapreduce.jobhistory.TestJobHistoryEventHandler
> testTimelineEventHandling(org.apache.hadoop.mapreduce.jobhistory.TestJobHistoryEventHandler)
> Time elapsed: 6.014 sec <<< FAILURE!
> java.lang.AssertionError: expected:<1> but was:<0>
> at org.junit.Assert.fail(Assert.java:88)
> at org.junit.Assert.failNotEquals(Assert.java:743)
> at org.junit.Assert.assertEquals(Assert.java:118)
> at org.junit.Assert.assertEquals(Assert.java:555)
> at org.junit.Assert.assertEquals(Assert.java:542)
> at
> org.apache.hadoop.mapreduce.jobhistory.TestJobHistoryEventHandler.testTimelineEventHandling(TestJobHistoryEventHandler.java:467)
> Results :
> Failed tests:
> TestJobHistoryEventHandler.testTimelineEventHandling:467 expected:<1> but
> was:<0>
> Tests run: 12, Failures: 1, Errors: 0, Skipped: 0
> {code}
> {code}
> Running org.apache.hadoop.mapred.TestMRTimelineEventHandling
> Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 204.488 sec
> <<< FAILURE! - in org.apache.hadoop.mapred.TestMRTimelineEventHandling
> testMRTimelineEventHandling(org.apache.hadoop.mapred.TestMRTimelineEventHandling)
> Time elapsed: 54.84 sec <<< FAILURE!
> java.lang.AssertionError: expected:<1> but was:<0>
> at org.junit.Assert.fail(Assert.java:88)
> at org.junit.Assert.failNotEquals(Assert.java:743)
> at org.junit.Assert.assertEquals(Assert.java:118)
> at org.junit.Assert.assertEquals(Assert.java:555)
> at org.junit.Assert.assertEquals(Assert.java:542)
> at
> org.apache.hadoop.mapred.TestMRTimelineEventHandling.testMRTimelineEventHandling(TestMRTimelineEventHandling.java:58)
> Results :
> Failed tests:
> TestMRTimelineEventHandling.testMRTimelineEventHandling:58 expected:<1> but
> was:<0>
> Tests run: 2, Failures: 1, Errors: 0, Skipped: 0
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)