bug 13357: startupanswer is advanced before agentmonitor got processed, so it's possible that pingcommand received by mgt server ahead of agentmonitor initializes pingmap

status 13357: resolved fixed
This commit is contained in:
Edison Su 2012-01-27 14:06:32 -08:00
parent 589dfe511f
commit ecf774a0d7

View File

@ -121,8 +121,7 @@ public class AgentMonitor extends Thread implements Listener {
}
public void pingBy(long agentId) {
Long previousTime = _pingMap.put(agentId, InaccurateClock.getTimeInSeconds());
assert (previousTime != null) : "How does agent not have a previous time? " + agentId;
_pingMap.put(agentId, InaccurateClock.getTimeInSeconds());
}
// TODO : use host machine time is not safe in clustering environment