Details
-
Bug
-
Resolution: Done
-
Critical
-
5.2.0.Beta3
-
None
Description
Taken from ISPN-2458:
When the lock is acquired after the first unlock, the second unlock fails with an IllegalMonitorStateException in OwnableReentrantLock.tryAcquire(...), but the reference count is still decremented in AbstractPerEntryLockContainer.releaseLock(...). This results in further IllegalStateException: Negative reference count for lock.
If the ISE occurs, the lock counter should not be affected.