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

This commit is contained in:
Varun Saxena 2016-10-27 15:36:43 +05:30
parent 77f2684dd3
commit 4e403def80
1 changed files with 2 additions and 0 deletions

View File

@ -776,6 +776,8 @@ public class TestJobHistoryParsing {
JobId jobId = job.getID();
LOG.info("JOBID is " + TypeConverter.fromYarn(jobId).toString());
app.waitForState(job, JobState.SUCCEEDED);
// make sure job history events are handled
app.waitForState(Service.STATE.STOPPED);
JobHistory jobHistory = new JobHistory();
jobHistory.init(configuration);