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

Cache collections iterator doesn't support remove with a cache loader

    Details

    • Type: Bug
    • Status: New (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 8.0.1.Final
    • Fix Version/s: None
    • Component/s: Core
    • Labels:
      None

      Description

      The iterator retrieved from the various collection of a Cache (entrySet, keySet, values) do not work properly when a cache loader interceptor. This is caused by using a CloseableIterator retrieved from the stream of the cache.

      CloseableIterator<CacheEntry<K, V>> iterator = Closeables.iterator(entrySet.stream());
      

      We should wrap super iterator like MarshalledValueInterceptor does.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                william.burns Will Burns
                Reporter:
                william.burns Will Burns
              • Votes:
                1 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: