You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stratos.apache.org by ga...@apache.org on 2015/02/02 13:37:54 UTC
stratos git commit: Update the child policy not found message when
cluster policy not found for cluster instance
Repository: stratos
Updated Branches:
refs/heads/master 7a8f25caa -> e142f61f1
Update the child policy not found message when cluster policy not found for cluster instance
Project: http://git-wip-us.apache.org/repos/asf/stratos/repo
Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/e142f61f
Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/e142f61f
Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/e142f61f
Branch: refs/heads/master
Commit: e142f61f1f1db6442f6d7679df12cd10f0a05d2e
Parents: 7a8f25c
Author: Gayan Gunarathne <ga...@wso2.com>
Authored: Mon Feb 2 17:54:13 2015 +0530
Committer: Gayan Gunarathne <ga...@wso2.com>
Committed: Mon Feb 2 17:54:13 2015 +0530
----------------------------------------------------------------------
.../stratos/autoscaler/context/cluster/ClusterContext.java | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/stratos/blob/e142f61f/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/context/cluster/ClusterContext.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/context/cluster/ClusterContext.java b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/context/cluster/ClusterContext.java
index 1b8154e..941a8ea 100644
--- a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/context/cluster/ClusterContext.java
+++ b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/context/cluster/ClusterContext.java
@@ -18,9 +18,6 @@
*/
package org.apache.stratos.autoscaler.context.cluster;
-import java.util.Map;
-import java.util.concurrent.ConcurrentHashMap;
-
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.stratos.autoscaler.applications.ApplicationHolder;
@@ -44,6 +41,9 @@ import org.apache.stratos.messaging.domain.topology.Cluster;
import org.apache.stratos.messaging.domain.topology.Member;
import org.apache.stratos.messaging.domain.topology.MemberStatus;
+import java.util.Map;
+import java.util.concurrent.ConcurrentHashMap;
+
/*
* It holds the runtime data of a VM cluster
*/
@@ -174,7 +174,7 @@ public class ClusterContext extends AbstractClusterContext {
throws PolicyValidationException, PartitionValidationException {
if (childPolicy == null) {
- String msg = "Deployment policy is null";
+ String msg = String.format("Child policy is not specified for the [instance alias] %s",clusterInstance.getAlias());
log.error(msg);
throw new PolicyValidationException(msg);
}