[infinispan-issues] [JBoss JIRA] (ISPN-7067) Cache.evict() sometimes performs a DataContainer.remove()

Tristan Tarrant (JIRA) issues at jboss.org
Wed Oct 5 08:45:01 EDT 2016


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

Tristan Tarrant updated ISPN-7067:
----------------------------------
           Status: Resolved  (was: Pull Request Sent)
    Fix Version/s: 9.0.0.Final
       Resolution: Done


> Cache.evict() sometimes performs a DataContainer.remove()
> ---------------------------------------------------------
>
>                 Key: ISPN-7067
>                 URL: https://issues.jboss.org/browse/ISPN-7067
>             Project: Infinispan
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 9.0.0.Alpha4, 8.2.4.Final
>            Reporter: Dan Berindei
>            Assignee: Dan Berindei
>             Fix For: 9.0.0.Beta1, 9.0.0.Final
>
>
> {{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.



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the infinispan-issues mailing list