You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by vo...@apache.org on 2016/02/15 10:54:40 UTC

[1/2] ignite git commit: IGNITE-2509: Added one more tests to ensure that all is fine.

Repository: ignite
Updated Branches:
  refs/heads/ignite-1.5.7 015162de2 -> 9360cce38


IGNITE-2509: Added one more tests to ensure that all is fine.


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

Branch: refs/heads/ignite-1.5.7
Commit: cab1f80f3703fff6d632a8e46bb0fd46209b9f09
Parents: a835fc4
Author: vozerov-gridgain <vo...@gridgain.com>
Authored: Mon Feb 15 12:53:43 2016 +0300
Committer: vozerov-gridgain <vo...@gridgain.com>
Committed: Mon Feb 15 12:54:23 2016 +0300

----------------------------------------------------------------------
 .../GridCacheOffHeapValuesEvictionSelfTest.java | 26 ++++++++++++++++++++
 1 file changed, 26 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/cab1f80f/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/GridCacheOffHeapValuesEvictionSelfTest.java
----------------------------------------------------------------------
diff --git a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/GridCacheOffHeapValuesEvictionSelfTest.java b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/GridCacheOffHeapValuesEvictionSelfTest.java
index 0efd89b..a3cc785 100644
--- a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/GridCacheOffHeapValuesEvictionSelfTest.java
+++ b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/GridCacheOffHeapValuesEvictionSelfTest.java
@@ -25,6 +25,7 @@ import org.apache.ignite.IgniteCache;
 import org.apache.ignite.cache.CacheMemoryMode;
 import org.apache.ignite.cache.CachePeekMode;
 import org.apache.ignite.cache.eviction.fifo.FifoEvictionPolicy;
+import org.apache.ignite.cache.eviction.lru.LruEvictionPolicy;
 import org.apache.ignite.configuration.CacheConfiguration;
 import org.apache.ignite.testframework.GridTestUtils;
 
@@ -50,6 +51,31 @@ public class GridCacheOffHeapValuesEvictionSelfTest extends GridCacheAbstractSel
     }
 
     /**
+     * Test single evict with OFFHEAP_VALUES mode.
+     *
+     * @throws Exception If failed.
+     */
+    public void testSingleEvictOffHeap() throws Exception {
+        CacheConfiguration<Integer, Object> ccfg = cacheConfiguration(grid(0).name());
+        ccfg.setName("testSingleEvictOffHeap");
+        ccfg.setMemoryMode(CacheMemoryMode.OFFHEAP_VALUES);
+        ccfg.setSwapEnabled(false);
+
+        LruEvictionPolicy plc = new LruEvictionPolicy();
+        plc.setMaxMemorySize(200);
+
+        ccfg.setEvictionPolicy(plc);
+
+        final IgniteCache<Integer, Object> cache = grid(0).getOrCreateCache(ccfg);
+
+        cache.put(1, new byte[150]);
+        cache.put(2, new byte[150]);
+        cache.put(3, new byte[150]);
+
+        assert cache.size() == 1;
+    }
+
+    /**
      * @throws Exception If failed.
      */
     public void testPutValuesOffHeap() throws Exception {


[2/2] ignite git commit: Merge remote-tracking branch 'origin/ignite-1.5.7' into ignite-1.5.7

Posted by vo...@apache.org.
Merge remote-tracking branch 'origin/ignite-1.5.7' into ignite-1.5.7


Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/9360cce3
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/9360cce3
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/9360cce3

Branch: refs/heads/ignite-1.5.7
Commit: 9360cce383827e9abef13ec2fc061bc316a2afd2
Parents: cab1f80 015162d
Author: vozerov-gridgain <vo...@gridgain.com>
Authored: Mon Feb 15 12:54:41 2016 +0300
Committer: vozerov-gridgain <vo...@gridgain.com>
Committed: Mon Feb 15 12:54:41 2016 +0300

----------------------------------------------------------------------
 .../internal/processors/continuous/GridContinuousProcessor.java  | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
----------------------------------------------------------------------