[infinispan-issues] [JBoss JIRA] (ISPN-8325) MemoryConfiguration.isEvictionEnabled() returns false if size = 0
William Burns (JIRA)
issues at jboss.org
Mon Sep 25 15:48:00 EDT 2017
[ https://issues.jboss.org/browse/ISPN-8325?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13468198#comment-13468198 ]
William Burns commented on ISPN-8325:
-------------------------------------
We can't really support a cache size of 0 with eviction. Thus I would say we should probably make sure that documentation states this as well. [~pferraro] you were referring to https://github.com/infinispan/infinispan/blob/master/core/src/main/java/org/infinispan/configuration/cache/MemoryConfiguration.java#L50 as the line talking about -1 or was it some where else?
> MemoryConfiguration.isEvictionEnabled() returns false if size = 0
> -----------------------------------------------------------------
>
> Key: ISPN-8325
> URL: https://issues.jboss.org/browse/ISPN-8325
> Project: Infinispan
> Issue Type: Bug
> Components: Configuration, Eviction
> Affects Versions: 9.1.1.Final
> Reporter: Paul Ferraro
> Priority: Critical
>
> The documentation for MemoryConfiguration explicitly states that eviction is disabled if size < 0, however, this method returns false if size = 0.
> Configuring MemoryConfigurationBuilder with size(0L) causes evict(...) to log a confusing WARN message:
> WARN: ISPN000419: Eviction of an entry invoked without an explicit eviction strategy for cache foo
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
More information about the infinispan-issues
mailing list