You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by sb...@apache.org on 2016/02/15 07:04:17 UTC
[10/11] ignite git commit: Warning when offHeapMaxMemory is
configured with OFFHEAP_VALUES mode
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-2407
Commit: 46b6a7638a594dd99742cb7de99cacaa69b621f2
Parents: 0be55c6
Author: Valentin Kulichenko <va...@gmail.com>
Authored: Fri Feb 12 15:21:00 2016 -0800
Committer: Valentin Kulichenko <va...@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.