[jboss-jira] [JBoss JIRA] (WFLY-4426) do not revertReloadRequired unless reload was required
Jeff Mesnil (JIRA)
issues at jboss.org
Fri Mar 13 10:28:18 EDT 2015
Jeff Mesnil created WFLY-4426:
---------------------------------
Summary: do not revertReloadRequired unless reload was required
Key: WFLY-4426
URL: https://issues.jboss.org/browse/WFLY-4426
Project: WildFly
Issue Type: Bug
Components: JMS
Affects Versions: 9.0.0.Alpha1
Reporter: Jeff Mesnil
Assignee: Jeff Mesnil
Fix For: 9.0.0.Beta1
HornetQReloadRequiredHandlers will call context.reloadRequired() if there performRuntime method is called and a HornetQ server service is installed.
In turn, it calls context.revertReloadRequired() in their rollbackRuntime if a HornetQ server service is installed.
However it is possible that at boot time, there is not HornetQ server installed when the performRuntime is installed (so context.reloadRequired is not called).
Then if an operation fails at boot time and the HornetQReloadRequiredHandlers op is rolled back, there will then be an installed HornetQ server and context.revertReloadRequired() will be called.
This generated a NPE before WFCORE-591 but it is also a programming error to call context.revertReloadRequired() in a OSH if context.reloadRequired() has not been called beforehands
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
More information about the jboss-jira
mailing list