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

Cache.evict() sometimes performs a DataContainer.remove()

XMLWordPrintable

      Cache.evict() generally uses DataContainer.evict() to move an entry from the data container to the store.

      However, when EntryWrappingInterceptor doesn't find the entry in the data container, EvictCommand.perform() doesn't set the EVICTED flag on the context entry, and then ReadCommittedEntry.commit() calls DataContainer.remove() instead of DataContainer.evict().

      If another command activated the entry between the entry wrapping and the commit, this will remove the entry altogether instead of moving it to the store.

            dberinde@redhat.com Dan Berindei (Inactive)
            dberinde@redhat.com Dan Berindei (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: