Uploaded image for project: 'Active and Available Inventory'
  1. Active and Available Inventory
  2. AAI-521

A&AI resources container sporadically hangs on startup

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • Beijing Release
    • None
    • None

      When starting nexus3.onap.org:10001/openecomp/aai-resources:1.1-STAGING-latest image, the org.onap.aai.dbgen.GenTester process started by createDBSchema.sh script sometimes does not exit blocking the startup process. As the result, aai-resources main process never starts. The only solution is to either kill the org.onap.aai.dbgen.GenTester process or to delete the entire container.

      The full thread dump of the process at the time it is stuck:

      Full thread dump OpenJDK 64-Bit Server VM (25.131-b11 mixed mode):
      "DestroyJavaVM" #233 prio=5 os_prio=0 tid=0x00007f0a3c00f800 nid=0xfe waiting on condition [0x0000000000000000]
         java.lang.Thread.State: RUNNABLE
      "main-EventThread" #65 daemon prio=5 os_prio=0 tid=0x00007f0a3d028800 nid=0x13d waiting on condition [0x00007f0a0834c000]
         java.lang.Thread.State: WAITING (parking)
             at sun.misc.Unsafe.park(Native Method)
             - parking to wait for  <0x000000077e611208> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
             at java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)
             at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2039)
             at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:442)
             at org.apache.zookeeper.ClientCnxn$EventThread.run(ClientCnxn.java:494)
      "main-SendThread(10.244.5.10:2181)" #64 daemon prio=5 os_prio=0 tid=0x00007f0a3cedf000 nid=0x13c runnable [0x00007f0a242a1000]
         java.lang.Thread.State: RUNNABLE
             at sun.nio.ch.EPollArrayWrapper.epollWait(Native Method)
             at sun.nio.ch.EPollArrayWrapper.poll(EPollArrayWrapper.java:269)
             at sun.nio.ch.EPollSelectorImpl.doSelect(EPollSelectorImpl.java:93)
             at sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:86)
             - locked <0x000000077e63f750> (a sun.nio.ch.Util$3)
             - locked <0x000000077e63f740> (a java.util.Collections$UnmodifiableSet)
             - locked <0x000000077e63f6f8> (a sun.nio.ch.EPollSelectorImpl)
             at sun.nio.ch.SelectorImpl.select(SelectorImpl.java:97)
             at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:349)
             at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1081)
      "Timer-0" #9 prio=5 os_prio=0 tid=0x00007f0a3cbde800 nid=0x10c in Object.wait() [0x00007f0a24be5000]
         java.lang.Thread.State: WAITING (on object monitor)
             at java.lang.Object.wait(Native Method)
             - waiting on <0x00000006caac3ed8> (a java.util.TaskQueue)
             at java.lang.Object.wait(Object.java:502)
             at java.util.TimerThread.mainLoop(Timer.java:526)
             - locked <0x00000006caac3ed8> (a java.util.TaskQueue)
             at java.util.TimerThread.run(Timer.java:505)
      

       

            jimmydot jimmydot
            yuryn yuryn
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: