[infinispan-issues] [JBoss JIRA] (ISPN-7668) Merge implementation is not correct on SimpleCache

Tristan Tarrant (JIRA) issues at jboss.org
Mon Mar 27 08:11:08 EDT 2017


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

Tristan Tarrant updated ISPN-7668:
----------------------------------
           Status: Resolved  (was: Pull Request Sent)
    Fix Version/s: 9.0.0.Final
       Resolution: Done


> Merge implementation is not correct on SimpleCache
> --------------------------------------------------
>
>                 Key: ISPN-7668
>                 URL: https://issues.jboss.org/browse/ISPN-7668
>             Project: Infinispan
>          Issue Type: Bug
>          Components: Core
>            Reporter: Katia Aresti
>            Assignee: Radim Vansa
>             Fix For: 9.0.0.Final
>
>
> Merge method is not correctly implemented in SimpleCache.
> Merge should work this way :
> * if the key is not present, add the value
> * If the key is present, apply the function between the existing key's value and the given value and replace the key with the merged result
> * If the merge function returns null, remove the key
> The case that should work as "putIfAbsent" does't work. Merge function is applied to null and the given value.



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the infinispan-issues mailing list