Skip to content

Commit 370554e

Browse files
author
Anthony Xu
committed
only ping timeout trigger host HA, otherwise there may be two threads try to HA the same VM
1 parent 830328b commit 370554e

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

engine/orchestration/src/com/cloud/agent/manager/DirectAgentAttache.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
import com.cloud.agent.transport.Response;
3535
import com.cloud.exception.AgentUnavailableException;
3636
import com.cloud.host.Status;
37-
import com.cloud.host.Status.Event;
3837
import com.cloud.resource.ServerResource;
3938

4039
public class DirectAgentAttache extends AgentAttache {
@@ -145,7 +144,6 @@ protected synchronized void runInContext() {
145144
PingCommand cmd = resource.getCurrentStatus(_id);
146145
if (cmd == null) {
147146
s_logger.warn("Unable to get current status on " + _id + "(" + _name + ")");
148-
_mgr.disconnectWithInvestigation(DirectAgentAttache.this, Event.AgentDisconnected);
149147
return;
150148
}
151149
if (s_logger.isDebugEnabled()) {

0 commit comments

Comments
 (0)