mirror of https://github.com/apache/cloudstack.git
bug 10588: clearing map so that the vm sync can resume on next connect, in case of failure
This commit is contained in:
parent
1710c2f684
commit
b050120303
|
|
@ -1947,8 +1947,10 @@ public class VirtualMachineManagerImpl implements VirtualMachineManager, Listene
|
|||
try {
|
||||
long seq_no=_agentMgr.send(agentId, syncCmd, this);
|
||||
_syncCommandMap.put(clusterId +"", syncCmd);
|
||||
} catch (AgentUnavailableException e1) {
|
||||
e1.printStackTrace();
|
||||
s_logger.debug("Cluster VM sync started with jobid " + seq_no);
|
||||
} catch (AgentUnavailableException e) {
|
||||
s_logger.fatal("The Cluster VM sync process failed with ", e);
|
||||
_syncCommandMap.remove(clusterId); // remove so that connecting next host can start the sync
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue