]
Wolf-Dieter Fink updated ISPN-9290:
-----------------------------------
Security: (was: Red Hat Internal)
cache.withFlags(Flag.SKIP_CACHE_LOAD).size() return the complete
cache size for HotRod even if eviction is enabled
------------------------------------------------------------------------------------------------------------------
Key: ISPN-9290
URL:
https://issues.jboss.org/browse/ISPN-9290
Project: Infinispan
Issue Type: Bug
Reporter: Wolf-Dieter Fink
Priority: Major
If a cache uses eviction and limit the number of objects in memory the size operation
will return the full number of entries.
Configure
<memory><object size="5"/>
adding 10 items
the client use
cache.withFlags(Flag.SKIP_CACHE_LOAD).size()
cache.size()
the expectation is that it return 5 with SKIP and 10 without.
But it shows both times 10.
If get is used all 10 items are seen. If get is used with SKIP 5 keys will return
"NULL" as expected.