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

Dan Berindei (JIRA) issues at jboss.org
Fri Sep 30 04:45:00 EDT 2016


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

Dan Berindei updated ISPN-7067:
-------------------------------
    Status: Open  (was: New)


> 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
>
>
> {{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