MAPREDUCE-6798. Fix intermittent failure of TestJobHistoryParsing.testJobHistoryMethods (Haibo Chen via Varun Saxena)

This commit is contained in:
Varun Saxena 2016-10-27 15:41:27 +05:30
parent 65c009ca00
commit 14ce42a8ed
1 changed files with 2 additions and 0 deletions

View File

@ -772,6 +772,8 @@ public class TestJobHistoryParsing {
app.submit(configuration);
Job job = app.getContext().getAllJobs().values().iterator().next();
app.waitForState(job, JobState.SUCCEEDED);
// make sure job history events are handled
app.waitForState(Service.STATE.STOPPED);
JobHistory jobHistory = new JobHistory();
jobHistory.init(configuration);