You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@aurora.apache.org by "Bill Farner (JIRA)" <ji...@apache.org> on 2014/06/28 00:47:24 UTC

[jira] [Created] (AURORA-560) Scheduler may hang while tearing down due to Quartz thread

Bill Farner created AURORA-560:
----------------------------------

             Summary: Scheduler may hang while tearing down due to Quartz thread
                 Key: AURORA-560
                 URL: https://issues.apache.org/jira/browse/AURORA-560
             Project: Aurora
          Issue Type: Bug
          Components: Scheduler
            Reporter: Bill Farner


Noticed this in vagrant - scheduler is stuck tearing down, with this thread keeping it alive:
{noformat}
"aurora-cron-1_QuartzSchedulerThread" prio=10 tid=0x00007f215c98b000 nid=0x307a in Object.wait() [0x00007f21179b8000]
   java.lang.Thread.State: TIMED_WAITING (on object monitor)
        at java.lang.Object.wait(Native Method)
        at org.quartz.core.QuartzSchedulerThread.run(QuartzSchedulerThread.java:253)
        - locked <0x00000000e131f170> (a java.lang.Object)
{noformat}

It turns out that construction of the Scheduler ends up creating and starting a non-daemon {{QuartzSchedulerThread}} within quartz code.  We should be able to fix this by registering a shutdown hook upfront rather than doing so when we receive {{SchedulerActive}}.



--
This message was sent by Atlassian JIRA
(v6.2#6252)