[infinispan-issues] [JBoss JIRA] Updated: (ISPN-761) Cache.keySet(), entrySet(), values(), size() ignore contents of cache loader

Manik Surtani (JIRA) jira-events at lists.jboss.org
Thu Sep 29 11:26:26 EDT 2011


     [ https://issues.jboss.org/browse/ISPN-761?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Manik Surtani updated ISPN-761:
-------------------------------

    Fix Version/s: 6.0.0.FINAL
                       (was: 5.1.0.BETA1)
                       (was: 5.1.0.FINAL)


Doing this efficiently would entail changing the {{CacheLoader}} SPI.

> Cache.keySet(),entrySet(),values(),size() ignore contents of cache loader
> -------------------------------------------------------------------------
>
>                 Key: ISPN-761
>                 URL: https://issues.jboss.org/browse/ISPN-761
>             Project: Infinispan
>          Issue Type: Bug
>          Components: Loaders and Stores
>    Affects Versions: 4.2.0.BETA1
>            Reporter: Paul Ferraro
>            Assignee: Manik Surtani
>              Labels: potential_performance_hit
>             Fix For: 6.0.0.FINAL
>
>
> Passivated cache entries are not represented in values returned by the keySet(), entrySet(), values(), and size() Cache methods.  This results in inconsistent behavior, since it is possible that a given cache key may not be contained in keySet() even though Cache.get(...) would return a non-null value if the entry was previously passivated.
> I think CacheLoaderInterceptor needs to implement the following methods:
>    Object visitSizeCommand(InvocationContext ctx, SizeCommand command) throws Throwable
>    Object visitValuesCommand(InvocationContext ctx, ValuesCommand command) throws Throwable
>    Object visitEntrySetCommand(InvocationContext ctx, EntrySetCommand command) throws Throwable
>    Object visitKeySetCommand(InvocationContext ctx, KeySetCommand command) throws Throwable

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the infinispan-issues mailing list