//forwarded by a day.
clock.jumpADay = false;
}
public void testNodeHealthBlackListing() throws Exception {
TaskTrackerHealthStatus status = getUnhealthyNodeStatus("ERROR");
//Blacklist tracker due to node health failures.
sendHeartBeat(status, false);
for (String host : hosts) {
checkReasonForBlackListing(host, nodeUnHealthyReasonSet);
}
status.setNodeHealthy(true);
status.setLastReported(System.currentTimeMillis());
status.setHealthReport("");
//white list tracker so the further test cases can be
//using trackers.
sendHeartBeat(status, false);
assertEquals("Trackers still blacklisted after healthy report", 0,
jobTracker.getBlacklistedTrackerCount());