geode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sai_boorlaga...@apache.org
Subject incubator-geode git commit: GEODE-1109: MemoryThresholdsDUnitTest.testDistributedRegionClientPutRejection
Date Tue, 22 Mar 2016 16:29:10 GMT
Repository: incubator-geode
Updated Branches:
  refs/heads/develop c38ae1d89 -> 57b00b12d


GEODE-1109: MemoryThresholdsDUnitTest.testDistributedRegionClientPutRejection

 Fix for GEODE-1096 broke this DUnit in CI.
 Modified the test to set the testBytesUsed
 inorder go critical.


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

Branch: refs/heads/develop
Commit: 57b00b12d4abcf59769171e333aa76d76e5bd0a0
Parents: c38ae1d
Author: Sai Boorlagadda <sboorlagadda@pivotal.io>
Authored: Mon Mar 21 13:00:41 2016 -0700
Committer: Sai Boorlagadda <sboorlagadda@pivotal.io>
Committed: Tue Mar 22 09:25:41 2016 -0700

----------------------------------------------------------------------
 .../gemfire/cache/management/MemoryThresholdsDUnitTest.java       | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/57b00b12/geode-core/src/test/java/com/gemstone/gemfire/cache/management/MemoryThresholdsDUnitTest.java
----------------------------------------------------------------------
diff --git a/geode-core/src/test/java/com/gemstone/gemfire/cache/management/MemoryThresholdsDUnitTest.java
b/geode-core/src/test/java/com/gemstone/gemfire/cache/management/MemoryThresholdsDUnitTest.java
index 17529b8..bff9dd9 100644
--- a/geode-core/src/test/java/com/gemstone/gemfire/cache/management/MemoryThresholdsDUnitTest.java
+++ b/geode-core/src/test/java/com/gemstone/gemfire/cache/management/MemoryThresholdsDUnitTest.java
@@ -176,7 +176,8 @@ public class MemoryThresholdsDUnitTest extends ClientServerTestCase {
         irm.setCriticalHeapPercentage(90f);
         
         getCache().getLoggerI18n().fine(addExpectedExString);
-        irm.getHeapMonitor().updateStateAndSendEvent(950);
+        HeapMemoryMonitor.setTestBytesUsedForThresholdSet(950);
+        irm.getHeapMonitor().updateStateAndSendEvent();
         getCache().getLoggerI18n().fine(removeExpectedExString);
         return null;
       }


Mime
View raw message