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

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

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Done
    • 7.0.0.Alpha4
    • 7.0.0.Beta1
    • Core
    • 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.

      Attachments

        Activity

          People

            wburns@redhat.com Will Burns
            pferraro@redhat.com Paul Ferraro
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: