ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [13/18] ignite git commit: Warning when offHeapMaxMemory is configured with OFFHEAP_VALUES mode
Date Mon, 15 Feb 2016 13:35:37 GMT
Warning when offHeapMaxMemory is configured with OFFHEAP_VALUES mode


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

Branch: refs/heads/ignite-2604
Commit: 46b6a7638a594dd99742cb7de99cacaa69b621f2
Parents: 0be55c6
Author: Valentin Kulichenko <valentin.kulichenko@gmail.com>
Authored: Fri Feb 12 15:21:00 2016 -0800
Committer: Valentin Kulichenko <valentin.kulichenko@gmail.com>
Committed: Fri Feb 12 15:21:00 2016 -0800

----------------------------------------------------------------------
 .../ignite/internal/processors/cache/GridCacheProcessor.java   | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/46b6a763/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheProcessor.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheProcessor.java
b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheProcessor.java
index 4bf96d2..db9298f 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheProcessor.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheProcessor.java
@@ -438,6 +438,12 @@ public class GridCacheProcessor extends GridProcessorAdapter {
 
         switch (cc.getMemoryMode()) {
             case OFFHEAP_VALUES: {
+                if (cacheType.userCache() && cc.getEvictionPolicy() == null &&
cc.getOffHeapMaxMemory() >= 0)
+                    U.quietAndWarn(log, "Off heap maximum memory configuration property will
be ignored for the " +
+                        "cache working in OFFHEAP_VALUES mode (memory usage will be unlimited):
" +
+                        U.maskName(cc.getName()) + ". Consider configuring eviction policy
or switching to " +
+                        "OFFHEAP_TIERED mode or.");
+
                 if (cc.getOffHeapMaxMemory() < 0)
                     cc.setOffHeapMaxMemory(0); // Set to unlimited.
 


Mime
View raw message