String[] exceptions = e.getValue().toArray(new String[0]); faultyTrackers.incrementFaults(tt, new JobFault(tt, jobName, exceptions));
if (job.getNoOfBlackListedTrackers() > 0) { for (String hostName : job.getBlackListedTrackers()) { faultyTrackers.incrementFaults(hostName);
/** Test method to increment the fault * This method is synchronized to make sure that the locking order * "faultyTrackers.potentiallyFaultyTrackers lock followed by taskTrackers * lock" is under JobTracker lock to avoid deadlocks. */ synchronized void incrementFaults(String hostName) { faultyTrackers.incrementFaults(hostName); }