while(jobIter.hasNext()) {
Job job = jobIter.next();
try {
if (job.isComplete()) {
Counters ctrs = job.getCounters();
if (ctrs != null) {
// If we got counters, perform extra validation.
this.recentSlotSeconds += ctrs.findCounter(
JobInProgress.Counter.SLOTS_MILLIS_MAPS).getValue() / 1000;
long filesSucceeded =
ctrs.findCounter(Counter.FILES_SUCCEEDED) != null ?
ctrs.findCounter(Counter.FILES_SUCCEEDED).getValue() : 0;
long filesFailed =
ctrs.findCounter(Counter.FILES_FAILED) != null ?
ctrs.findCounter(Counter.FILES_FAILED).getValue() : 0;
long filesNoAction =
ctrs.findCounter(Counter.FILES_NOACTION) != null ?
ctrs.findCounter(Counter.FILES_NOACTION).getValue() : 0;
long blockFixSimulationFailed =
ctrs.findCounter(Counter.BLOCK_FIX_SIMULATION_FAILED) != null?
ctrs.findCounter(Counter.BLOCK_FIX_SIMULATION_FAILED).getValue() : 0;
long blockFixSimulationSucceeded =
ctrs.findCounter(Counter.BLOCK_FIX_SIMULATION_SUCCEEDED) != null?
ctrs.findCounter(Counter.BLOCK_FIX_SIMULATION_SUCCEEDED).getValue() : 0;
this.recentNumBlockFixSimulationFailed += blockFixSimulationFailed;
this.recentNumBlockFixSimulationSucceeded += blockFixSimulationSucceeded;
int files = jobIndex.get(job).size();