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

Container shutdown might hang when using SFO

    XMLWordPrintable

    Details

    • Rank:
      1|hznflj:
    • Sprint 3

      Description

      When the SFO password is incorrectly configured for example (or the SFO is not operational at the moment when OpenAM initializes), then OpenAM might never release the ShutdownManager lock. When that happens the shutdown will fail since it will keep waiting for the lock to be freed up.

      A sample hang would be:

      "SystemTimer" prio=10 tid=0x00007f2668372000 nid=0x195c waiting on condition [0x00007f2652deb000]
      java.lang.Thread.State: WAITING (parking)
      at sun.misc.Unsafe.park(Native Method)

      • parking to wait for <0x00000000c7979b30> (a java.util.concurrent.locks.ReentrantReadWriteLock$NonfairSync)
        at java.util.concurrent.locks.LockSupport.park(LockSupport.java:156)
        at java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt(AbstractQueuedSynchronizer.java:811)
        at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireQueued(AbstractQueuedSynchronizer.java:842)
        at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquire(AbstractQueuedSynchronizer.java:1178)
        at java.util.concurrent.locks.ReentrantReadWriteLock$WriteLock.lock(ReentrantReadWriteLock.java:807)
        at com.sun.identity.common.ShutdownManager.acquireValidLock(ShutdownManager.java:100)
        at com.sun.identity.ha.jmqdb.FAMRecordJMQPersister.<init>(FAMRecordJMQPersister.java:214)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
        at java.lang.Class.newInstance0(Class.java:355)
        at java.lang.Class.newInstance(Class.java:308)
        at com.sun.identity.ha.FAMPersisterManager.<init>(FAMPersisterManager.java:62)
        at com.sun.identity.ha.FAMPersisterManager.getInstance(FAMPersisterManager.java:69)
      • locked <0x00000000f3b54590> (a java.lang.Class for com.sun.identity.ha.FAMPersisterManager)
        at com.iplanet.dpro.session.JMQSessionRepository.initPersistSession(JMQSessionRepository.java:188)
        at com.iplanet.dpro.session.JMQSessionRepository.run(JMQSessionRepository.java:467)
        at com.sun.identity.common.TimerPool$WorkerThread.run(TimerPool.java:430)

        Attachments

          Activity

            People

            peter.major Peter Major [X] (Inactive)
            peter.major Peter Major [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: