job.refresh(clock.getTime());
taskAttemptID[3] = job.findMapTask(trackers[3]);
job.refresh(clock.getTime());
int oldRunningMap = job.runningMaps();
LOG.info("No of running maps before fail was " + oldRunningMap);
job.failTask(taskAttemptID[2]);
job.refresh(clock.getTime());
assertEquals(
"Running maps count should be updated from " + oldRunningMap + " to " +
(oldRunningMap - 1), job.runningMaps(), oldRunningMap - 1);
LOG.info(" Job running maps after fail " + job.runningMaps());