[jboss-jira] [JBoss JIRA] (WFLY-9982) Sometimes BootstrapImpl$ShutdownHook does not finish and holds server shutdown

Miroslav Novak (JIRA) issues at jboss.org
Thu Mar 8 09:32:01 EST 2018


     [ https://issues.jboss.org/browse/WFLY-9982?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Miroslav Novak updated WFLY-9982:
---------------------------------
    Component/s: MSC


> Sometimes BootstrapImpl$ShutdownHook does not finish and holds server shutdown
> ------------------------------------------------------------------------------
>
>                 Key: WFLY-9982
>                 URL: https://issues.jboss.org/browse/WFLY-9982
>             Project: WildFly
>          Issue Type: Bug
>          Components: MSC, Server
>    Affects Versions: 12.0.0.Final
>            Reporter: Miroslav Novak
>            Assignee: Jason Greene
>
> There is intermittent failure where server does not stop and hangs during clean shutdown. 
> Investigation:
> In attached thread dump there is shutdown of WF/EAP JVM thread waiting for finishing org.jboss.as.server.BootstrapImpl$ShutdownHook:
> {code}
> "Management Triggered Shutdown" #262 prio=5 os_prio=0 tid=0x00007f931c03b800 nid=0x3900 in Object.wait() [0x00007f9296423000]
>    java.lang.Thread.State: WAITING (on object monitor)
>         at java.lang.Object.wait(Native Method)
>         - waiting on <0x00000000cf059e98> (a org.jboss.as.server.BootstrapImpl$ShutdownHook)
>         at java.lang.Thread.join(Thread.java:1252)
>         - locked <0x00000000cf059e98> (a org.jboss.as.server.BootstrapImpl$ShutdownHook)
>         at java.lang.Thread.join(Thread.java:1326)
>         at java.lang.ApplicationShutdownHooks.runHooks(ApplicationShutdownHooks.java:106)
>         at java.lang.ApplicationShutdownHooks$1.run(ApplicationShutdownHooks.java:46)
>         at java.lang.Shutdown.runHooks(Shutdown.java:123)
>         at java.lang.Shutdown.sequence(Shutdown.java:167)
>         at java.lang.Shutdown.exit(Shutdown.java:212)
>         - locked <0x00000000cedfac08> (a java.lang.Class for java.lang.Shutdown)
>         at java.lang.Runtime.exit(Runtime.java:109)
>         at java.lang.System.exit(System.java:971)
>         at org.jboss.as.server.SystemExiter$DefaultExiter.exit(SystemExiter.java:117)
>         at org.jboss.as.server.SystemExiter.logAndExit(SystemExiter.java:98)
>         at org.jboss.as.server.operations.ServerShutdownHandler$ShutdownAction$1.run(ServerShutdownHandler.java:184)
>         at java.lang.Thread.run(Thread.java:748)
> {code}
> which hangs in:
> {code}
> "Thread-3" #12 prio=5 os_prio=0 tid=0x00007f92d01dc800 nid=0x3902 waiting on condition [0x00007f9296221000]
>    java.lang.Thread.State: WAITING (parking)
>         at sun.misc.Unsafe.park(Native Method)
>         - parking to wait for  <0x00000000fc2531d8> (a java.util.concurrent.CountDownLatch$Sync)
>         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.doAcquireSharedInterruptibly(AbstractQueuedSynchronizer.java:997)
>         at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly(AbstractQueuedSynchronizer.java:1304)
>         at java.util.concurrent.CountDownLatch.await(CountDownLatch.java:231)
>         at org.jboss.as.server.BootstrapImpl$ShutdownHook.shutdown(BootstrapImpl.java:276)
>         at org.jboss.as.server.BootstrapImpl$ShutdownHook.run(BootstrapImpl.java:240)
> {code}
> where ShutdownHook.shutdown(BootstrapImpl.java:276) is waiting for latch to count down however this does not happen. It seems like that not all services shut down.  



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the jboss-jira mailing list