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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Major Major
    • None
    • 8.0.1.Final
    • Core
    • None

      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.

            wburns@redhat.com Will Burns
            wburns@redhat.com Will Burns
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: