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

Mircea Markus (JIRA) jira-events at lists.jboss.org
Wed Sep 26 12:36:03 EDT 2012


    [ https://issues.jboss.org/browse/ISPN-761?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12722040#comment-12722040 ] 

Mircea Markus edited comment on ISPN-761 at 9/26/12 12:34 PM:
--------------------------------------------------------------

Moving this to 5.2 as now we have support for these methods in CacheLoader (load, loadAll, loadAllKeys) and it's important for the DistributedExecutors (ISPN-2279) to be able to also load entries from the database the same way MapReduceTask can.
                
      was (Author: mircea.markus):
    Moving this to 5.2 as now we have support for these methods in CacheLoader (load, loadAll, loadAllKeys) and it's important for the DistributedExecutors to be able to also load entries from the database the same way MapReduceTask can.

                  
> 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: Vladimir Blagojevic
>            Priority: Critical
>              Labels: potential_performance_hit
>             Fix For: 5.2.0.CR1
>
>
> 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.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the infinispan-issues mailing list