[infinispan-issues] [JBoss JIRA] (ISPN-8946) All collection wrappers should always delegate to underlying collections where available

William Burns (JIRA) issues at jboss.org
Mon Mar 19 09:49:01 EDT 2018


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

William Burns commented on ISPN-8946:
-------------------------------------

So the more I thought about this I could handle the locking by adding methods to the various locking interceptors. But then this still doesn't fix issues with notifications as well. Although currently some notifications don't work with the various collections (ie. CacheEntryVisited). I am kinda thinking the latter is fine though, as long as we can guarantee write notifications are at least sent.

> All collection wrappers should always delegate to underlying collections where available
> ----------------------------------------------------------------------------------------
>
>                 Key: ISPN-8946
>                 URL: https://issues.jboss.org/browse/ISPN-8946
>             Project: Infinispan
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 9.2.0.Final
>            Reporter: William Burns
>            Assignee: William Burns
>
> All places that override values returned from keySet and entrySet should always delegate appropriately to the underlying keySet or entrySet. We should try to be as minimally invasive to each level down as possible. An example would be that we shouldn't create copies of said collections if possible and instead just use delegates.
> https://github.com/infinispan/infinispan/pull/5794#discussion_r173789766



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


More information about the infinispan-issues mailing list