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

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

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

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.0.0.Beta1
    • 7.0.0.Alpha4
    • Core
    • None

      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.

            [ISPN-4376] AdvancedCache.filterEntries(...) does not respect configured cache flags

            Dave Stahl <dstahl@redhat.com> changed the Status of bug 1128808 from VERIFIED to CLOSED

            RH Bugzilla Integration added a comment - Dave Stahl <dstahl@redhat.com> changed the Status of bug 1128808 from VERIFIED to CLOSED

            Alan Field <afield@redhat.com> changed the Status of bug 1128808 from ON_QA to VERIFIED

            RH Bugzilla Integration added a comment - Alan Field <afield@redhat.com> changed the Status of bug 1128808 from ON_QA to VERIFIED

            Dave Stahl <dstahl@redhat.com> changed the Status of bug 1128808 from MODIFIED to ON_QA

            RH Bugzilla Integration added a comment - Dave Stahl <dstahl@redhat.com> changed the Status of bug 1128808 from MODIFIED to ON_QA

            Adrian Nistor <anistor@redhat.com> changed the Status of bug 1128808 from POST to MODIFIED

            RH Bugzilla Integration added a comment - Adrian Nistor <anistor@redhat.com> changed the Status of bug 1128808 from POST to MODIFIED

            William Burns <wburns@redhat.com> changed the Status of bug 1128808 from NEW to POST

            RH Bugzilla Integration added a comment - William Burns <wburns@redhat.com> changed the Status of bug 1128808 from NEW to POST

            Will Burns added a comment -

            Good catch! Yes, unfortunately this was missed since internally this doesn't use a command which contains the flags that would carry the SKIP_CACHE_LOAD for example.

            Will Burns added a comment - Good catch! Yes, unfortunately this was missed since internally this doesn't use a command which contains the flags that would carry the SKIP_CACHE_LOAD for example.

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

                Created:
                Updated:
                Resolved:
                Archived: