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

Repeated unlocking causes errors with reference counting

    XMLWordPrintable

Details

    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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: