[infinispan-issues] [JBoss JIRA] Resolved: (ISPN-455) Value removed from cache still be visible to putIfAbsent in single transaction scope.

Manik Surtani (JIRA) jira-events at lists.jboss.org
Tue May 25 11:47:55 EDT 2010


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

Manik Surtani resolved ISPN-455.
--------------------------------

    Resolution: Done


> Value removed from cache still be visible to putIfAbsent in single transaction scope. 
> --------------------------------------------------------------------------------------
>
>                 Key: ISPN-455
>                 URL: https://jira.jboss.org/browse/ISPN-455
>             Project: Infinispan
>          Issue Type: Bug
>          Components: Core API
>    Affects Versions: 4.1.0.BETA1
>            Reporter: Alexander Gavrilov
>            Assignee: Manik Surtani
>            Priority: Critical
>             Fix For: 4.1.0.CR1
>
>         Attachments: testPutIfAbsentAfterRemoveInTx.patch
>
>
> If entry removed from cache new value can't be inserted using putIfAbsent in the same transaction.   
> cache.put("k1", "v1");
>  
> tx.start();
> cache.remove("k1");
> ...
> assertNull(cache.putIfAbsent("k1", "v2"));
> tx.commit();
> now cache.putIfAbsent("k1", "v2") returns "v2";

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the infinispan-issues mailing list