Uploaded image for project: 'OpenAM'
  1. OpenAM
  2. OPENAM-8521

CacheBlockBase will deadlock when com.sun.identity.idm.cache.entry.expire.enabled=true

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 12.0.3, 13.0.0
    • Fix Version/s: 12.0.4, 13.5.0
    • Component/s: idrepo, SDK
    • Labels:
    • Sprint:
      AM Sustaining Sprint 19, AM Sustaining Sprint 20, AM Sustaining Sprint 21
    • Support Ticket IDs:

      Description

      As a result of fix for OPENAM-7140, OpenAM can deadlock if the cache expires and if CacheBlockBase tries to clear it.

      "http-apr-0.0.0.0-30011-exec-10" - Thread t@179
         java.lang.Thread.State: WAITING
      	at sun.misc.Unsafe.park(Native Method)
      	- parking to wait for <2f15fef5> (a java.util.concurrent.locks.ReentrantReadWriteLock$NonfairSync)
      	at java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)
      	at java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt(AbstractQueuedSynchronizer.java:836)
      	at java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireShared(AbstractQueuedSynchronizer.java:967)
      	at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireShared(AbstractQueuedSynchronizer.java:1283)
      	at java.util.concurrent.locks.ReentrantReadWriteLock$ReadLock.lock(ReentrantReadWriteLock.java:727)
      	at com.iplanet.am.sdk.common.CacheBlockBase.hasCompleteSet(CacheBlockBase.java:257)
      --
      "http-apr-0.0.0.0-30011-exec-6" - Thread t@175
         java.lang.Thread.State: WAITING
      	at sun.misc.Unsafe.park(Native Method)
      	- parking to wait for <2f15fef5> (a java.util.concurrent.locks.ReentrantReadWriteLock$NonfairSync)
      	at java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)
      	at java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt(AbstractQueuedSynchronizer.java:836)
      	at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireQueued(AbstractQueuedSynchronizer.java:870)
      	at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquire(AbstractQueuedSynchronizer.java:1199)
      	at java.util.concurrent.locks.ReentrantReadWriteLock$WriteLock.lock(ReentrantReadWriteLock.java:943)
      	at com.iplanet.am.sdk.common.CacheBlockBase.clear(CacheBlockBase.java:444)
      	at com.iplanet.am.sdk.common.CacheBlockBase.hasExpiredAndUpdated(CacheBlockBase.java:233)
      	at com.iplanet.am.sdk.common.CacheBlockBase.hasCompleteSet(CacheBlockBase.java:261)
      --
      "http-apr-0.0.0.0-30011-exec-5" - Thread t@174
         java.lang.Thread.State: WAITING
      	at sun.misc.Unsafe.park(Native Method)
      	- parking to wait for <2f15fef5> (a java.util.concurrent.locks.ReentrantReadWriteLock$NonfairSync)
      	at java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)
      	at java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt(AbstractQueuedSynchronizer.java:836)
      	at java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireShared(AbstractQueuedSynchronizer.java:967)
      	at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireShared(AbstractQueuedSynchronizer.java:1283)
      	at java.util.concurrent.locks.ReentrantReadWriteLock$ReadLock.lock(ReentrantReadWriteLock.java:727)
      	at com.iplanet.am.sdk.common.CacheBlockBase.hasCompleteSet(CacheBlockBase.java:257)
      

        Attachments

          Activity

            People

            • Assignee:
              markdr Mark de Reeper
              Reporter:
              sachiko Sachiko Wallace
              QA Assignee:
              Filip Kubáň [X] (Inactive)
            • Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 3h Original Estimate - 3h
                3h
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 12h
                12h