[
https://jira.jboss.org/browse/ISPN-455?page=com.atlassian.jira.plugin.sys...
]
Alexander Gavrilov updated ISPN-455:
------------------------------------
Description:
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";
was:
Whe in transaction scope entry removed from cache and later new value inserted using
putIfAbsent old (removed) value returned from cache.
cache.put("k1", "v1");
tx.start();
cache.remove("k1");
...
assertNull(cache.putIfAbsent("k1", "v2"));
tx.commit();
now cache.putIfAbsent("k1", "v2") returns "v2";
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
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