Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-2466

Repeated unlocking causes errors with reference counting

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 5.2.0.Beta4
    • 5.2.0.Beta3
    • Transactions
    • None

      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.

            manik_jira Manik Surtani (Inactive)
            mircea.markus Mircea Markus (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: