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

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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 8.2.5.Final, 9.0.0.Final
    • 8.2.4.Final, 9.0.0.Final
    • Core
    • None

      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)
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: