Updated Branches:
  refs/heads/master f252644d3 -> b4de7ba76

fixing a test failure and a fix to small comment


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

Branch: refs/heads/master
Commit: c8a0c1f946cef0cf484874925fe5ff5b0ce868d5
Parents: 096398a
Author: Lahiru Sandaruwan <[email protected]>
Authored: Wed Dec 25 16:14:40 2013 +0530
Committer: Lahiru Sandaruwan <[email protected]>
Committed: Wed Dec 25 16:14:40 2013 +0530

----------------------------------------------------------------------
 .../main/java/org/apache/stratos/autoscaler/PartitionContext.java  | 2 +-
 .../src/test/resources/test-minimum-autoscaler-rule.drl            | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/c8a0c1f9/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/PartitionContext.java
----------------------------------------------------------------------
diff --git 
a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/PartitionContext.java
 
b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/PartitionContext.java
index a9fa739..972a2aa 100644
--- 
a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/PartitionContext.java
+++ 
b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/PartitionContext.java
@@ -54,7 +54,7 @@ public class PartitionContext implements Serializable{
     // properties
     private Properties properties;
     
-    // 10 mints as the default
+    // 15 mints as the default
     private long expiryTime = 900000;
     // pending members
     private List<MemberContext> pendingMembers;

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/c8a0c1f9/components/org.apache.stratos.autoscaler/src/test/resources/test-minimum-autoscaler-rule.drl
----------------------------------------------------------------------
diff --git 
a/components/org.apache.stratos.autoscaler/src/test/resources/test-minimum-autoscaler-rule.drl
 
b/components/org.apache.stratos.autoscaler/src/test/resources/test-minimum-autoscaler-rule.drl
index 86c354a..2a0f9be 100644
--- 
a/components/org.apache.stratos.autoscaler/src/test/resources/test-minimum-autoscaler-rule.drl
+++ 
b/components/org.apache.stratos.autoscaler/src/test/resources/test-minimum-autoscaler-rule.drl
@@ -55,7 +55,7 @@ rule "Minimum Rule"
 dialect "mvel"
        when
               $ctxt : PartitionContext ()
-              eval($ctxt.getCurrentMemberCount() < 
$ctxt.getMinimumMemberCount())
+              eval($ctxt.getTotalMemberCount() < $ctxt.getMinimumMemberCount())
 
        then
               setMinRuleFired(true);

Reply via email to