glassfish
  1. glassfish
  2. GLASSFISH-20463

DAS fails to stop with stop-domain --force=false due to a non-daemon thread

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 4.0_b87_RC3
    • Fix Version/s: 4.1
    • Component/s: OSGi-JavaEE
    • Labels:
      None

      Description

      If you do:

      asadmin start-domain
      asadmin stop-domain --force=false

      You get a timeout:

      $ asadmin stop-domain --force=false
      Waiting for the domain to stop ........................................................
      Timed out (60 seconds) waiting for the domain to stop.
      Command stop-domain failed.

      This is due to a non-daemon thread in a thread pool. From the jstack output:

      "pool-8-thread-1" prio=5 tid=0x00007fa321b71000 nid=0xa103 waiting on condition [0x00000001368d5000]
      java.lang.Thread.State: WAITING (parking)
      at sun.misc.Unsafe.park(Native Method)

      • parking to wait for <0x00000001292d9910> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
        at java.util.concurrent.locks.LockSupport.park(LockSupport.java:186)
        at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2043)
        at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:442)
        at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1068)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:722)

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Sanjeeb Sahoo
            Reporter:
            Tom Mueller
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated: