Skip to content

Commit 714c00a

Browse files
author
Glover, Rene (rg9975)
committed
fixes for agent.send peer disconnect issues during command execution
1 parent 32ce1c2 commit 714c00a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

engine/orchestration/src/main/java/com/cloud/agent/manager/AgentManagerImpl.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -798,13 +798,11 @@ public long send(final Long hostId, final Commands commands, final Listener list
798798
}
799799

800800
protected int getAgentSendRetryCount() {
801-
final String value = _configDao != null ? _configDao.getValue("cluster.agent.peer.lookup.retry.count") : null;
802-
return NumbersUtil.parseInt(value, 1);
801+
PeerLookupRetryCount.value();
803802
}
804803

805804
protected int getAgentSendRetryIntervalMs() {
806-
final String value = _configDao != null ? _configDao.getValue("cluster.agent.peer.lookup.retry.interval.ms") : null;
807-
return NumbersUtil.parseInt(value, 200);
805+
PeerLookupRetryIntervalMs.value();
808806
}
809807

810808
protected AgentAttache resolveAttacheForRetry(final Long hostId, final AgentAttache current, final boolean forceReload)

0 commit comments

Comments
 (0)