[infinispan-issues] [JBoss JIRA] (ISPN-4362) Need to make sure concurrent activation with keySet, values, and entrySet don't cause misses
William Burns (JIRA)
issues at jboss.org
Mon Sep 11 09:39:02 EDT 2017
[ https://issues.jboss.org/browse/ISPN-4362?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13462082#comment-13462082 ]
William Burns commented on ISPN-4362:
-------------------------------------
Just doing the listener is not sufficient to cover all cases. It is still possible to process an entry in the store and then have it activated (in this case the listener would cause duplicate processing)
https://gist.github.com/wburns/96222685e37b689ebf306640b271fc39
> Need to make sure concurrent activation with keySet, values, and entrySet don't cause misses
> --------------------------------------------------------------------------------------------
>
> Key: ISPN-4362
> URL: https://issues.jboss.org/browse/ISPN-4362
> Project: Infinispan
> Issue Type: Bug
> Components: Loaders and Stores
> Reporter: William Burns
>
> It looks possible for a concurrent activation to occur after keys, values, or entrySet have looked at the memory contents but before getting to the store/loader. In this case that value would not be seen. We would need an activation listener installed similar to what the Entry Retriever does.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
More information about the infinispan-issues
mailing list