LookupUtil.getAgentManager().checkForSuspectAgents();
System.out.println("testAgentBackfillPerformance: checkForSuspectAgents run 2 took "
+ (System.currentTimeMillis() - start) + "ms");
AvailabilityType curAvail;
start = System.currentTimeMillis();
resNum = 0;
for (Resource resource : allResources) {
curAvail = availabilityManager.getCurrentAvailabilityTypeForResource(overlord, resource.getId());
AvailabilityType expected = (0 == resNum) ? DOWN : ((resNum > 80) ? DISABLED : UNKNOWN);
++resNum;
assert curAvail == expected : "Expected " + expected.name() + " but got " + curAvail.name() + " for "
+ resource;
// make sure our resources' new availabilities are consistent
// the first time we backfilled everything was unknown, only the platform was updated.
// later we went UP/DISABLED then DOWN so we'll have 2, 3 or 4 rows)