[
https://issues.apache.org/jira/browse/OPENEJB-2004?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13599839#comment-13599839
]
Andy Gumbrecht commented on OPENEJB-2004:
-----------------------------------------
OK, I think this is a race condition in the call to s.pauseAll(); in the public
void schedulerShuttingdown() event. I will move it to before the thread. Trying
to change the state of the Scheduler in the event is not going to work.
> EjbTimerService fails to shut down after recent changes
> -------------------------------------------------------
>
> Key: OPENEJB-2004
> URL: https://issues.apache.org/jira/browse/OPENEJB-2004
> Project: OpenEJB
> Issue Type: Bug
> Components: container system
> Affects Versions: (trunk/tomee)
> Environment: NA
> Reporter: Andy Gumbrecht
>
> EjbTimerService fails to shut down after recent changes made for persistent
> timers.
> The pausing of jobs rather than un-scheduling seems to block the first
> 'friendly' shutdown thread, causing the thread to wait for the defined
> timeout.
> This occurs synchronously, so multiple scheduler shut down calls can take an
> age to complete.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira