[infinispan-issues] [JBoss JIRA] (ISPN-11557) Ensure max-idle works with enabled eviction and a configured persistence
Donald Naro (Jira)
issues at jboss.org
Mon Mar 30 06:00:15 EDT 2020
Donald Naro created ISPN-11557:
----------------------------------
Summary: Ensure max-idle works with enabled eviction and a configured persistence
Key: ISPN-11557
URL: https://issues.redhat.com/browse/ISPN-11557
Project: Infinispan
Issue Type: Bug
Components: Expiration, Loaders and Stores
Affects Versions: 10.1.1.Final
Reporter: Donald Naro
Assignee: Will Burns
If a cache is configured with eviction and expiration max-idle, correct with a store (passivation=false) to keep the evicted entries, the cache size and entries comming down to the eviction limit after max-idle is reached.
Note this will happen no matter whether a get() or getWithMetadata() is used.
Configuration is like below.
~~~
<distributed-cache name="ExpirationCache" owners="2" mode="ASYNC" remote-timeout="25000" start="EAGER">
<locking isolation="READ_COMMITTED" striping="false" acquire-timeout="20000" concurrency-level="1000"/>
<transaction mode="NONE"/>
<memory>
<object size="5"/>
</memory>
<expiration max-idle="20000" lifespan="100000"/>
<persistence passivation="false">
<file-store max-entries="1000000" relative-to="jboss.server.data.dir" path="api-general-filestore" name="api-general-filestore" shared="false" preload="false" fetch-state="true" purge="true"/>
</persistence>
</distributed-cache>
~~~
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
More information about the infinispan-issues
mailing list