mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
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:
parent
589dfe511f
commit
ecf774a0d7
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user