We're updating the issue view to help you get more done. 

JIRA Will not Shutdown When JIRA Jenkins Plugin is Enabled

Description

When JIRA Jenkins Integration Plugin is running, JIRA will not shutdown.

This is a problem also seen with the JIRA Sonar Plugin.

The logs show:multiple errors:

After these entries, the logs start to show repeated:

...until such time as the JIRA process is manually killed.

Knowing that JIRA Sonar Plugin also has the same problem, the diagnosis is easy

  • With JJI running (but not JIRA Sonar), Stop JIRA. The process will not stop

  • Kill JIRA

  • Restart JIRA

  • Disable JJI

  • Stop JIRA... things shut down smoothly/

1) The initial RunnableTimedExecution error has a reference here:

https://jira.atlassian.com/browse/JRA-22070

The money quote is...

This happens when singleton components in a plugin register themselves to be called on shutdown, usually via the DisposableBean, but when they are called, they take too long

2) The IllegalStateException error has a reference here:

https://jira.atlassian.com/browse/JRA-27603

This is happening because we are firing events to plugins that have had their OSGi context shutdown. Not sure if there is any user visible effects

In other words, the exception is an after-effect... a consequence of JIRA not having shut down properly.

Environment

JIRA v5.2 & JIRA v5.2.2
Java 1.6.0_25 (both JDK or JRE, & later versions as well)
Linux 2.6.18
mysql 5.5.19

Assignee

Unassigned

Reporter

Mark Symons

Labels

None

Epic/Theme (migrated)

None

Patch submitted

None

Testcase(s) included

None

Components

Affects versions

Priority

Critical
Configure