geode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bschucha...@apache.org
Subject [15/50] [abbrv] incubator-geode git commit: GEODE-139: Setting local-max-memory in RebalanceOperationDUnitTest
Date Fri, 14 Aug 2015 20:40:04 GMT
GEODE-139: Setting local-max-memory in RebalanceOperationDUnitTest

The "coordinator" process in dunit is launched by the gradle framework.
The rest of the processes are launched by the dunit framework. Those
processes may have different heap sizes. If local-max-memory is not set,
we read the heap size to determine how to rebalance data.

In this case we didn't move any primaries because one member had much
more heap than the remaining members.


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

Branch: refs/heads/feature/GEODE-77
Commit: 856fa0c125d847f44bbc6965cb77810346110594
Parents: b460df4
Author: Dan Smith <dsmith@pivotal.io>
Authored: Wed Jul 29 17:33:06 2015 -0700
Committer: Dan Smith <dsmith@pivotal.io>
Committed: Thu Jul 30 10:38:34 2015 -0700

----------------------------------------------------------------------
 .../internal/cache/control/RebalanceOperationDUnitTest.java        | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/856fa0c1/gemfire-core/src/test/java/com/gemstone/gemfire/internal/cache/control/RebalanceOperationDUnitTest.java
----------------------------------------------------------------------
diff --git a/gemfire-core/src/test/java/com/gemstone/gemfire/internal/cache/control/RebalanceOperationDUnitTest.java
b/gemfire-core/src/test/java/com/gemstone/gemfire/internal/cache/control/RebalanceOperationDUnitTest.java
index 002aa36..819bf9e 100644
--- a/gemfire-core/src/test/java/com/gemstone/gemfire/internal/cache/control/RebalanceOperationDUnitTest.java
+++ b/gemfire-core/src/test/java/com/gemstone/gemfire/internal/cache/control/RebalanceOperationDUnitTest.java
@@ -2401,6 +2401,7 @@ public class RebalanceOperationDUnitTest extends CacheTestCase {
         paf.setRedundantCopies(1);
         paf.setRecoveryDelay(-1);
         paf.setStartupRecoveryDelay(-1);
+        paf.setLocalMaxMemory(100);
         PartitionAttributes prAttr = paf.create();
         attr.setPartitionAttributes(prAttr);
         cache.createRegion("region1", attr.create());
@@ -2424,6 +2425,7 @@ public class RebalanceOperationDUnitTest extends CacheTestCase {
     paf.setRedundantCopies(1);
     paf.setRecoveryDelay(-1);
     paf.setStartupRecoveryDelay(-1);
+    paf.setLocalMaxMemory(100);
     PartitionAttributes prAttr = paf.create();
     attr.setPartitionAttributes(prAttr);
     final Region region = cache.createRegion("region1", attr.create());


Mime
View raw message