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/06/11 04:44:30 UTC

[5/5] stratos git commit: Remove member from stat context when the expired obsolete member is removed

Remove member from stat context when the expired obsolete member is removed


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

Branch: refs/heads/master
Commit: 6528712012fe0e96d28867e4076ccbc796ba21e3
Parents: 6d9df35
Author: Lahiru Sandaruwan <la...@apache.org>
Authored: Thu Jun 11 08:00:14 2015 +0530
Committer: Lahiru Sandaruwan <la...@apache.org>
Committed: Thu Jun 11 08:00:14 2015 +0530

----------------------------------------------------------------------
 .../autoscaler/context/partition/ClusterLevelPartitionContext.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/stratos/blob/65287120/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/context/partition/ClusterLevelPartitionContext.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/context/partition/ClusterLevelPartitionContext.java b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/context/partition/ClusterLevelPartitionContext.java
index 2155022..858a827 100644
--- a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/context/partition/ClusterLevelPartitionContext.java
+++ b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/context/partition/ClusterLevelPartitionContext.java
@@ -722,7 +722,7 @@ public class ClusterLevelPartitionContext extends PartitionContext implements Se
                             CloudControllerServiceClient.getInstance().removeExpiredObsoledMemberFromCloudController(
                                     obsoleteMember);
                             iterator.remove();
-
+                            memberStatsContexts.remove(obsoleteMember.getMemberId());
                             log.info(String.format("Obsolete member is removed from autoscaler and cloud controller " +
                                             "[obsolete member] %s [cluster] %s " +
                                             "[cluster instance] %s",