stratos-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lahi...@apache.org
Subject [5/5] stratos git commit: Remove member from stat context when the expired obsolete member is removed
Date Thu, 11 Jun 2015 02:44:30 GMT
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 <lahirus@apache.org>
Authored: Thu Jun 11 08:00:14 2015 +0530
Committer: Lahiru Sandaruwan <lahirus@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",


Mime
View raw message