Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-761

Cache.keySet(),entrySet(),values(),size() ignore contents of cache loader

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      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

              wburns@redhat.com Will Burns
              pferraro@redhat.com Paul Ferraro
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: