Repository: stratos Updated Branches: refs/heads/master 92ff7e9b5 -> 8534d35ad
fixing scale-down issue Project: http://git-wip-us.apache.org/repos/asf/stratos/repo Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/8313e57a Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/8313e57a Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/8313e57a Branch: refs/heads/master Commit: 8313e57a314ae312e1f74971dcfd97f47f90188a Parents: 961a60f Author: reka <[email protected]> Authored: Fri Aug 21 12:46:12 2015 +0530 Committer: reka <[email protected]> Committed: Fri Aug 21 12:46:29 2015 +0530 ---------------------------------------------------------------------- .../apache/stratos/autoscaler/algorithms/partition/RoundRobin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/stratos/blob/8313e57a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/algorithms/partition/RoundRobin.java ---------------------------------------------------------------------- diff --git a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/algorithms/partition/RoundRobin.java b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/algorithms/partition/RoundRobin.java index 1ced903..2544e15 100644 --- a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/algorithms/partition/RoundRobin.java +++ b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/algorithms/partition/RoundRobin.java @@ -93,7 +93,7 @@ public class RoundRobin implements PartitionAlgorithm { } } - if (partitionContexts[selectedIndex].getNonTerminatedMemberCount() < partitionContexts[selectedIndex].getMax()) { + if (partitionContexts[selectedIndex].getNonTerminatedMemberCount() <= partitionContexts[selectedIndex].getMax()) { if (log.isDebugEnabled()) { log.debug(String.format("[round-robin algorithm] [scale-down] [partition] %s has has members that" +
