You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stratos.apache.org by la...@apache.org on 2015/04/24 13:31:35 UTC
stratos git commit: Place the deployment policy update log correctly
Repository: stratos
Updated Branches:
refs/heads/master d3c9fab03 -> ec8b3ee79
Place the deployment policy update log correctly
Project: http://git-wip-us.apache.org/repos/asf/stratos/repo
Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/ec8b3ee7
Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/ec8b3ee7
Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/ec8b3ee7
Branch: refs/heads/master
Commit: ec8b3ee79b7adb35021b9aae396d16b2517c316b
Parents: d3c9fab
Author: Lahiru Sandaruwan <la...@apache.org>
Authored: Fri Apr 24 17:01:24 2015 +0530
Committer: Lahiru Sandaruwan <la...@apache.org>
Committed: Fri Apr 24 17:01:24 2015 +0530
----------------------------------------------------------------------
.../autoscaler/services/impl/AutoscalerServiceImpl.java | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/stratos/blob/ec8b3ee7/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/services/impl/AutoscalerServiceImpl.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/services/impl/AutoscalerServiceImpl.java b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/services/impl/AutoscalerServiceImpl.java
index 1c8bbf2..a21be3f 100644
--- a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/services/impl/AutoscalerServiceImpl.java
+++ b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/services/impl/AutoscalerServiceImpl.java
@@ -954,12 +954,12 @@ public class AutoscalerServiceImpl implements AutoscalerService {
PolicyManager.getInstance().updateDeploymentPolicy(deploymentPolicy);
// PolicyManager.getInstance().persist();
- if (log.isInfoEnabled()) {
- log.info("Successfully updated deployment policy: [deployment-policy-id] " + deploymentPolicyID);
- }
updateClusterMonitors(deploymentPolicy);
+ if (log.isInfoEnabled()) {
+ log.info("Successfully updated deployment policy: [deployment-policy-id] " + deploymentPolicyID);
+ }
}
private void updateClusterMonitors(DeploymentPolicy deploymentPolicy) throws InvalidDeploymentPolicyException {
@@ -994,9 +994,7 @@ public class AutoscalerServiceImpl implements AutoscalerService {
log.error(message);
throw new InvalidDeploymentPolicyException(message);
}
-
removeOldPartitionsFromClusterMonitor(clusterLevelNetworkPartitionContext, networkPartition);
-
}
}
}