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

CacheEntryRemoved method called when Cache#remove is called even if there is no entry

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

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • 8.2.11.Final
    • Core
    • None

      It really sounds like a bug to me to have my listener called with no value just because some code called #remove() just in case the cache contains an entry associated with the key.

      The Javadoc is not super explicit about this use case but it does indicate

      when a cache entry is removed from the cache
      

      and clearly nothing was removed since nothing existed.

      By the way this jira indicate that 8.2.11 is not released but it's available on Maven central.

              wburns@redhat.com Will Burns
              tmortagne Thomas Mortagne (Inactive)
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: