[infinispan-issues] [JBoss JIRA] (ISPN-10377) listener CacheEntryExpired callback , key is not locked

Dan Berindei (Jira) issues at jboss.org
Thu Nov 14 06:52:00 EST 2019


    [ https://issues.jboss.org/browse/ISPN-10377?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13813007#comment-13813007 ] 

Dan Berindei commented on ISPN-10377:
-------------------------------------

I've changed the type from bug to feature request because the {{CacheEntryExpired}} listener is intentionally not invoked while holding the lock (with {{pre == true}}).

> listener CacheEntryExpired callback , key is not locked
> -------------------------------------------------------
>
>                 Key: ISPN-10377
>                 URL: https://issues.jboss.org/browse/ISPN-10377
>             Project: Infinispan
>          Issue Type: Feature Request
>          Components: API
>    Affects Versions: 9.4.15.Final
>            Reporter: Alexander Malysh
>            Assignee: Will Burns
>            Priority: Major
>         Attachments: CacheTest1.java, infinispan-test.xml
>
>
> Hi,
> it looks like that CacheEntryExpired callback is called without a key lock held like CacheEntryRemoved. In this scenario I'm unable to synchronize keys if reaper thread is enabled.
> I'm attaching simple test case that will show this issue. Because it's a classical race condition please start this test multiple times if result should be ok.
> Thanks in advance!



--
This message was sent by Atlassian Jira
(v7.13.8#713008)


More information about the infinispan-issues mailing list