Repository: stratos Updated Branches: refs/heads/master 371a2f384 -> 904028078
fixing a bug in network partition algorithms Project: http://git-wip-us.apache.org/repos/asf/stratos/repo Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/90402807 Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/90402807 Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/90402807 Branch: refs/heads/master Commit: 90402807869c9419013926f19430c2915388ae2c Parents: 371a2f3 Author: R-Rajkumar <[email protected]> Authored: Fri Mar 6 19:53:11 2015 +0530 Committer: R-Rajkumar <[email protected]> Committed: Fri Mar 6 19:53:22 2015 +0530 ---------------------------------------------------------------------- .../algorithms/networkpartition/OneAfterAnotherAlgorithm.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/stratos/blob/90402807/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/algorithms/networkpartition/OneAfterAnotherAlgorithm.java ---------------------------------------------------------------------- diff --git a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/algorithms/networkpartition/OneAfterAnotherAlgorithm.java b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/algorithms/networkpartition/OneAfterAnotherAlgorithm.java index 35582d0..e97b132 100644 --- a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/algorithms/networkpartition/OneAfterAnotherAlgorithm.java +++ b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/algorithms/networkpartition/OneAfterAnotherAlgorithm.java @@ -51,7 +51,7 @@ public class OneAfterAnotherAlgorithm implements NetworkPartitionAlgorithm{ int selectedIndex = networkPartitionAlgorithmContext.getCurrentNetworkPartitionIndex().incrementAndGet(); List<String> nextNetworkPartitions = new ArrayList<String>(); - nextNetworkPartitions.add(networkPartitions[selectedIndex]); + nextNetworkPartitions.add(networkPartitions[selectedIndex-1]); return nextNetworkPartitions; }
