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

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

    XMLWordPrintable

    Details

    • Type: Feature Request
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Duplicate Issue
    • Affects Version/s: 8.2.11.Final
    • Fix Version/s: None
    • Component/s: Core
    • Labels:
      None

      Description

      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.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  william.burns William Burns
                  Reporter:
                  thomas.mortagne Thomas Mortagne
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: