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

View File

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