Revert "There are few cases that mgt server won't reponse agent's pingcommand timely, or in KVM's case, libvirt won't repsonse in few mintues, which will cause agent reconnect to mgt server, then all the on going tasks on host will fail"

This reverts commit f3e91bf26a.
This commit is contained in:
Edison Su 2014-10-21 10:17:11 -07:00
parent 6d22ff1d94
commit 8b834171b6
1 changed files with 3 additions and 1 deletions

View File

@ -578,7 +578,9 @@ public class Agent implements HandlerFactory, IAgentControl {
final Object obj = task.get();
if (obj instanceof Response) {
if ((System.currentTimeMillis() - _lastPingResponseTime) > _pingInterval * _shell.getPingRetries()) {
s_logger.error("Ping Interval has gone past " + _pingInterval * _shell.getPingRetries() + ". Won't reconnect to mgt server, as connection is still alive");
s_logger.error("Ping Interval has gone past " + _pingInterval * _shell.getPingRetries() + ". Attempting to reconnect.");
final Link link = task.getLink();
reconnect(link);
return;
}