[
https://issues.jboss.org/browse/ISPN-2466?page=com.atlassian.jira.plugin....
]
Manik Surtani updated ISPN-2466:
--------------------------------
Description:
Taken from ISPN-2458:
{quote}
When the lock is acquired after the first unlock, the second unlock fails with
IllegalMonitorStateException in OwnableReentrantLock.tryAcquire(...), but the reference
count is still decremented in AbstractPerEntryLockContainer.releaseLock(...). This results
in further IllegalStateException: Negative reference count for lock.
{quote}
If the ISE occurs, the lock counter should not be affected.
was:
Taken from ISPN-2458:
<snip>
When the lock is acquired after the first unlock, the second unlock fails with
IllegalMonitorStateException in OwnableReentrantLock.tryAcquire(...), but the reference
count is still decremented in AbstractPerEntryLockContainer.releaseLock(...). This results
in further IllegalStateException: Negative reference count for lock.
</snip>
Even if the ISE occurs, the lock counter should not be affected.
Unlock called twice doesn't behave correctly
--------------------------------------------
Key: ISPN-2466
URL:
https://issues.jboss.org/browse/ISPN-2466
Project: Infinispan
Issue Type: Bug
Components: Locking and Concurrency
Affects Versions: 5.2.0.Beta3
Reporter: Mircea Markus
Assignee: Manik Surtani
Priority: Critical
Fix For: 5.2.0.CR1
Taken from ISPN-2458:
{quote}
When the lock is acquired after the first unlock, the second unlock fails with
IllegalMonitorStateException in OwnableReentrantLock.tryAcquire(...), but the reference
count is still decremented in AbstractPerEntryLockContainer.releaseLock(...). This results
in further IllegalStateException: Negative reference count for lock.
{quote}
If the ISE occurs, the lock counter should not be affected.
--
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