[infinispan-issues] [JBoss JIRA] (ISPN-9491) CacheEntryRemoved method called when Cache#remove is called even if there is no entry

Tristan Tarrant (JIRA) issues at jboss.org
Tue Sep 11 11:17:01 EDT 2018


     [ https://issues.jboss.org/browse/ISPN-9491?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tristan Tarrant updated ISPN-9491:
----------------------------------
    Description: 
It really sounds like a bug to be 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

{noformat}
when a cache entry is removed from the cache
{noformat}

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.


> CacheEntryRemoved method called when Cache#remove is called even if there is no entry
> -------------------------------------------------------------------------------------
>
>                 Key: ISPN-9491
>                 URL: https://issues.jboss.org/browse/ISPN-9491
>             Project: Infinispan
>          Issue Type: Feature Request
>          Components: Core
>    Affects Versions: 8.2.11.Final
>            Reporter: Thomas Mortagne
>            Assignee: William Burns
>
> It really sounds like a bug to be 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
> {noformat}
> when a cache entry is removed from the cache
> {noformat}
> 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.



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the infinispan-issues mailing list