Updated Branches:
  refs/heads/master cdccf8499 -> 312baf717

 Fixing ArrayIndexOutOfBoundsException at removing Rif Count


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

Branch: refs/heads/master
Commit: 312baf71762d82cef1841ac3517e9d0beab25ffa
Parents: cdccf84
Author: Lahiru Sandaruwan <[email protected]>
Authored: Fri Jan 17 10:15:39 2014 +0530
Committer: Lahiru Sandaruwan <[email protected]>
Committed: Fri Jan 17 10:15:39 2014 +0530

----------------------------------------------------------------------
 .../balancer/statistics/LoadBalancerStatisticsCollector.java     | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/312baf71/components/org.apache.stratos.load.balancer/src/main/java/org/apache/stratos/load/balancer/statistics/LoadBalancerStatisticsCollector.java
----------------------------------------------------------------------
diff --git 
a/components/org.apache.stratos.load.balancer/src/main/java/org/apache/stratos/load/balancer/statistics/LoadBalancerStatisticsCollector.java
 
b/components/org.apache.stratos.load.balancer/src/main/java/org/apache/stratos/load/balancer/statistics/LoadBalancerStatisticsCollector.java
index fed672d..f522a27 100644
--- 
a/components/org.apache.stratos.load.balancer/src/main/java/org/apache/stratos/load/balancer/statistics/LoadBalancerStatisticsCollector.java
+++ 
b/components/org.apache.stratos.load.balancer/src/main/java/org/apache/stratos/load/balancer/statistics/LoadBalancerStatisticsCollector.java
@@ -129,7 +129,9 @@ public class LoadBalancerStatisticsCollector implements 
LoadBalancerStatisticsRe
             }
         } else {
             Vector<Date> vector = inFlightRequestToDateListMap.get(clusterId);
-            vector.remove(vector.size() - 1);
+            if(!vector.isEmpty()){
+                vector.remove(vector.size() - 1);
+            }
 
             if (log.isDebugEnabled()) {
                 log.debug(String.format("In-flight request removed from 
counting list: [cluster] %s [list size] %s ", clusterId,

Reply via email to