CS-16213: skip agent rebalancing when the management server doesn't own the host any more

This commit is contained in:
Alena Prokharchyk 2012-10-23 10:47:44 -07:00
parent 62607c9a75
commit 3948d7d7c5
1 changed files with 1 additions and 1 deletions

View File

@ -863,7 +863,7 @@ public class ClusteredAgentManagerImpl extends AgentManagerImpl implements Clust
continue;
}
if (transferMap.getInitialOwner() != _nodeId || attache.forForward()) {
if (transferMap.getInitialOwner() != _nodeId || attache == null || attache.forForward()) {
s_logger.debug("Management server " + _nodeId + " doesn't own host id=" + hostId + " any more, skipping rebalance for the host");
iterator.remove();
_hostTransferDao.completeAgentTransfer(hostId);