mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02: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) {
|
public void pingBy(long agentId) {
|
||||||
Long previousTime = _pingMap.put(agentId, InaccurateClock.getTimeInSeconds());
|
_pingMap.put(agentId, InaccurateClock.getTimeInSeconds());
|
||||||
assert (previousTime != null) : "How does agent not have a previous time? " + agentId;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO : use host machine time is not safe in clustering environment
|
// TODO : use host machine time is not safe in clustering environment
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user