cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject git commit: updated refs/heads/4.4 to fbafc95
Date Tue, 10 Feb 2015 13:38:48 GMT
Repository: cloudstack
Updated Branches:
  refs/heads/4.4 0c0c7dd07 -> fbafc957d


CLOUDSTACK-8238 handling of retry ping improved

Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/fbafc957
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/fbafc957
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/fbafc957

Branch: refs/heads/4.4
Commit: fbafc957dc4e9cdc83aceb2762c0b07296b1a3e6
Parents: 0c0c7dd
Author: Daan Hoogland <dhoogland@schubergphilis.com>
Authored: Tue Feb 10 14:34:20 2015 +0100
Committer: Daan Hoogland <dhoogland@schubergphilis.com>
Committed: Tue Feb 10 14:36:55 2015 +0100

----------------------------------------------------------------------
 .../src/com/cloud/agent/manager/DirectAgentAttache.java          | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/fbafc957/engine/orchestration/src/com/cloud/agent/manager/DirectAgentAttache.java
----------------------------------------------------------------------
diff --git a/engine/orchestration/src/com/cloud/agent/manager/DirectAgentAttache.java b/engine/orchestration/src/com/cloud/agent/manager/DirectAgentAttache.java
index f3459d8..69ac5eb 100755
--- a/engine/orchestration/src/com/cloud/agent/manager/DirectAgentAttache.java
+++ b/engine/orchestration/src/com/cloud/agent/manager/DirectAgentAttache.java
@@ -170,9 +170,9 @@ public class DirectAgentAttache extends AgentAttache {
                 ServerResource resource = _resource;
 
                 if (resource != null) {
-                    PingCommand cmd = null;
+                    PingCommand cmd = resource.getCurrentStatus(_id);
                     int retried = 0;
-                    while ( cmd == null && ++retried < _HostPingRetryCount.value())
+                    while ( cmd == null && ++retried <= _HostPingRetryCount.value())
                     {
                         cmd = resource.getCurrentStatus(_id);
                         Thread.sleep(1000*_HostPingRetryTimer.value());


Mime
View raw message