]
Work on ISPN-12173 started by Donald Naro.
------------------------------------------
Explanation for eviction leads confusion
----------------------------------------
Key: ISPN-12173
URL:
https://issues.redhat.com/browse/ISPN-12173
Project: Infinispan
Issue Type: Enhancement
Components: Documentation
Affects Versions: 12.0.0.Dev01
Reporter: Wolf-Dieter Fink
Assignee: Donald Naro
Priority: Major
Labels: eviction
chapter 8.2. Eviction
([
https://infinispan.org/docs/dev/titles/configuring/configuring.html#evict...]
Starts with a sentence that leads confusion
"Eviction lets you control the size of the data container by removing cache entries
to make space when adding new entries."
The wording "removing cache entries to make space" sound like the entry will be
removed like a remove('key') invocation or expiration.
But this is not the case. It should be clear that the entry is evicted from memory on
exactly this instance, no other instance is affected.
To prevent from not deterministic behaviour if different instances within the cluster are
used for request eviction should not be configured without persistence (as mentioned) but
the initial statement should be more precise
Proposal
Eviction lets you contol the size of data container in this local instance by dropping
(evict) one choosen entry from memory only without further effects.
This is a local action for this node and does not affect any other node within the
cluster
To prevent from inconsistency eviction should not be used without a configured
persistence