[infinispan-issues] [JBoss JIRA] (ISPN-8946) All collection wrappers should always delegate to underlying collections where available
William Burns (JIRA)
issues at jboss.org
Thu Mar 15 17:06:00 EDT 2018
[ https://issues.jboss.org/browse/ISPN-8946?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13546695#comment-13546695 ]
William Burns commented on ISPN-8946:
-------------------------------------
I have to rethink this as write operations will not work without first obtaining the lock to the cache in the LOCAL or INVAL cases (REPL/DIST/SCATTERED) would be fine as they always delegate to the cache, unless CACHE_MODE_LOCAL is supplied (which has many issues with write operations on these caches anyways).
> 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