ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ivan Rakov (JIRA)" <j...@apache.org>
Subject [jira] [Created] (IGNITE-5215) Allow user to configure memory policy with maxSize lesser than default initialSize
Date Mon, 15 May 2017 11:29:04 GMT
Ivan Rakov created IGNITE-5215:
----------------------------------

             Summary: Allow user to configure memory policy with maxSize lesser than default
initialSize
                 Key: IGNITE-5215
                 URL: https://issues.apache.org/jira/browse/IGNITE-5215
             Project: Ignite
          Issue Type: Improvement
          Components: cache
    Affects Versions: 2.0
            Reporter: Ivan Rakov
            Assignee: Ivan Rakov


Attempt to create memory policy with small maxSize ends with error:
{noformat}
Caused by: class org.apache.ignite.IgniteCheckedException: MemoryPolicy maxSize must not be
smaller than initialSize [name=dfltMemPlc, initSize=268,4 MB, maxSize=209,7 MB]
	at org.apache.ignite.internal.processors.cache.database.IgniteCacheDatabaseSharedManager.checkPolicySize(IgniteCacheDatabaseSharedManager.java:419)
	at org.apache.ignite.internal.processors.cache.database.IgniteCacheDatabaseSharedManager.validateConfiguration(IgniteCacheDatabaseSharedManager.java:337)
	at org.apache.ignite.internal.processors.cache.database.IgniteCacheDatabaseSharedManager.init(IgniteCacheDatabaseSharedManager.java:112)
	at org.apache.ignite.internal.processors.cache.database.IgniteCacheDatabaseSharedManager.start0(IgniteCacheDatabaseSharedManager.java:99)
	at org.gridgain.grid.internal.processors.cache.database.GridCacheDatabaseSharedManager.initDataBase(GridCacheDatabaseSharedManager.java:493)
	at org.gridgain.grid.internal.processors.cache.database.GridCacheDatabaseSharedManager.start0(GridCacheDatabaseSharedManager.java:436)
	at org.apache.ignite.internal.processors.cache.GridCacheSharedManagerAdapter.start(GridCacheSharedManagerAdapter.java:53)
	at org.apache.ignite.internal.processors.cache.GridCacheProcessor.start(GridCacheProcessor.java:644)
	at org.apache.ignite.internal.IgniteKernal.startProcessor(IgniteKernal.java:1763)
	... 29 more
{noformat}
This can be easily fixed by setting initialSize. Though, it would be better to don't oblige
user spending time on fixing it.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message