Fixing application monitor creating failure issue due to re-try timeout
Project: http://git-wip-us.apache.org/repos/asf/stratos/repo Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/bd65af0a Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/bd65af0a Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/bd65af0a Branch: refs/heads/data-publisher-integration Commit: bd65af0a2bb034b5d2fd94bc7f6f4eb3e57ff51d Parents: 2c052c4 Author: Akila Perera <[email protected]> Authored: Fri Aug 7 22:52:12 2015 +0530 Committer: Akila Perera <[email protected]> Committed: Fri Aug 7 22:52:12 2015 +0530 ---------------------------------------------------------------------- .../event/receiver/topology/AutoscalerTopologyEventReceiver.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/stratos/blob/bd65af0a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/event/receiver/topology/AutoscalerTopologyEventReceiver.java ---------------------------------------------------------------------- diff --git a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/event/receiver/topology/AutoscalerTopologyEventReceiver.java b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/event/receiver/topology/AutoscalerTopologyEventReceiver.java index 4e6d8fd..119c9c6 100644 --- a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/event/receiver/topology/AutoscalerTopologyEventReceiver.java +++ b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/event/receiver/topology/AutoscalerTopologyEventReceiver.java @@ -133,7 +133,7 @@ public class AutoscalerTopologyEventReceiver { (ApplicationClustersCreatedEvent) event; String appId = applicationClustersCreatedEvent.getAppId(); boolean appMonitorCreationTriggered = false; - int retries = 5; + int retries = 30; while (!appMonitorCreationTriggered && retries > 0) { try { //acquire read lock
