[infinispan-issues] [JBoss JIRA] (ISPN-2381) Lock can be removed from map even when unlocked from non-owner

Radim Vansa (JIRA) jira-events at lists.jboss.org
Thu Oct 11 06:46:03 EDT 2012


Radim Vansa created ISPN-2381:
---------------------------------

             Summary: Lock can be removed from map even when unlocked from non-owner
                 Key: ISPN-2381
                 URL: https://issues.jboss.org/browse/ISPN-2381
             Project: Infinispan
          Issue Type: Bug
          Components: Locking and Concurrency
    Affects Versions: 5.2.0.Beta1
            Reporter: Radim Vansa
            Assignee: Manik Surtani


In OwnableReentrantLock: 
If in the tryRelease(int) the owner != requestor the lock is not unlocked, it is still removed from AbstractPerEntryLockContainer.locks causing that is effectively unlocked.

https://github.com/infinispan/infinispan/blob/master/core/src/main/java/org/infinispan/util/concurrent/locks/containers/AbstractPerEntryLockContainer.java#L102
https://github.com/infinispan/infinispan/blob/master/core/src/main/java/org/infinispan/util/concurrent/locks/OwnableReentrantLock.java#L154

--
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