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

AdvancedCache.filterEntries(...) does not respect configured cache flags

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 7.0.0.Alpha4
    • Fix Version/s: 7.0.0.Beta1
    • Component/s: Core
    • Labels:
      None

      Description

      Consider the following:

      Cache<K, V> cache = ...;
      KeyValueFilter<K, V> filter = ...;
      EntryIterator<K, V> entries = cache.getAdvancedCache().withFlags(Flag.CACHE_MODE_LOCAL, Flag.SKIP_CACHE_LOAD).filterEntries(filter);
      

      One would expect this to return only local, in-memory entries, but it instead returns both entries from remote nodes and from a cache loader, effectively ignoring the configured flags.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                william.burns William Burns
                Reporter:
                pferraro Paul Ferraro
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: