0 Replies Latest reply on Apr 26, 2010 5:10 AM by Carlo de Wolf

    Hang on shutdown

    Carlo de Wolf Master

      On a recent testsuite run all configuration failed to shutdown.


      [server:stop] Shutting down server: all
      [server:stop] log4j:WARN No appenders could be found for logger (org.jnp.interfaces.TimedSocketFactory).
      [server:stop] log4j:WARN Please initialize the log4j system properly.
      [server:stop] shutdownTimeout will be=45
      [server:stop] Writing server thread dump to /data/hudson/.hudson/jobs/JBoss-AS-6.x-jboss-tests/workspace/trunk/build/target/jboss-6.0.0-SNAPSHOT/server/all/log/threadDump.log
      [server:stop] Failed to shutdown server "all" before timeout. Destroying the process.
      [server:stop] Unable to shutdown server properly: org.jboss.jbossas.servermanager.ServerShutdownException: Failed to shutdown server before timeout.Process was destroyed.


      Even after this the server was still running. Glancing in the thread dump it appears to be HSQL which is holding back the shutdown.


      The testsuite itself continued on as if nothing was wrong, subsequently other testsuites started failing.


      I think we have two issues at hand:

      1. the obvious: shutdown must work
      2. server:stop must exit with non-zero if the process can not (really) be killed


      I'll also add a cleaner script to the run to make sure there are no left-overs.