mirror of
https://github.com/apache/cloudstack
synced 2026-08-31 17:13:53 +00:00
Miss out one place to use queue instead, this is for decoupling notification from heartbeat to avoid being potentially blocked in callbacks
This commit is contained in:
parent
f37f7f36aa
commit
2a45327a89
@ -669,7 +669,7 @@ public class ClusterManagerImpl implements ClusterManager {
|
||||
Date cutTime = DateUtil.currentGMTTime();
|
||||
List<ManagementServerHostVO> inactiveList = _mshostDao.getInactiveList(conn, new Date(cutTime.getTime() - heartbeatThreshold));
|
||||
if(inactiveList.size() > 0) {
|
||||
notifyNodeLeft(inactiveList);
|
||||
this.queueNotification(null, inactiveList);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user