[infinispan-issues] [JBoss JIRA] (ISPN-9290) cache.withFlags(Flag.SKIP_CACHE_LOAD).size() return the complete cache size for HotRod even if eviction is enabled
Wolf-Dieter Fink (Jira)
issues at jboss.org
Mon Nov 19 12:40:00 EST 2018
[ https://issues.jboss.org/browse/ISPN-9290?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
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.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
More information about the infinispan-issues
mailing list