bug 10588: clearing map so that the vm sync can resume on next connect, in case of failure

This commit is contained in:
Abhinandan Prateek 2011-10-12 12:34:54 +05:30
parent 1710c2f684
commit b050120303
1 changed files with 4 additions and 2 deletions

View File

@ -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
}
}
}