[infinispan-issues] [JBoss JIRA] (ISPN-3124) AtomicHashMap.put is not atomic with pessimistic locking
Dan Berindei (JIRA)
jira-events at lists.jboss.org
Mon May 20 09:08:06 EDT 2013
Dan Berindei created ISPN-3124:
----------------------------------
Summary: AtomicHashMap.put is not atomic with pessimistic locking
Key: ISPN-3124
URL: https://issues.jboss.org/browse/ISPN-3124
Project: Infinispan
Issue Type: Enhancement
Components: Core API
Affects Versions: 5.3.0.Beta1
Reporter: Dan Berindei
Assignee: Dan Berindei
Fix For: 5.3.0.CR1, 5.3.0.Final
When the user calls {{AtomicHashMap.put(k, v)}}, {{AtomicHashMapProxy.getDeltaMapForWrite()}} first reads the atomic map in the invocation context, and only acquires a lock afterwards.
Between the read and the lock, another transaction can write something to the atomic map, and that write will be lost.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the infinispan-issues
mailing list