[jboss-jira] [JBoss JIRA] (AS7-6035) Improper use of OperationContext.restartRequired()

Brian Stansberry (JIRA) jira-events at lists.jboss.org
Mon Nov 26 11:16:23 EST 2012


Brian Stansberry created AS7-6035:
-------------------------------------

             Summary: Improper use of OperationContext.restartRequired()
                 Key: AS7-6035
                 URL: https://issues.jboss.org/browse/AS7-6035
             Project: Application Server 7
          Issue Type: Bug
          Components: Domain Management
    Affects Versions: 7.1.3.Final (EAP)
            Reporter: Brian Stansberry
            Assignee: Brian Stansberry
             Fix For: 7.2.0.Alpha1


Look or an fix uses of OperationContext.restartRequired() that should be using reloadRequired(). There are very few reasons why a full process restart should be needed for a configuration model change to take effect. Typically a full process restart would only be needed for a domain mode server whose JVM configuration settings have been changed in the host model.

Running "git grep restartRequired()" shows the following suspicious uses:

logging/src/main/java/org/jboss/as/logging/HandlerOperations.java:                        context.restartRequired();
logging/src/main/java/org/jboss/as/logging/HandlerOperations.java:                            context.restartRequired();
server/src/main/java/org/jboss/as/server/operations/ServerRestartRequiredHandler.java:        context.restartRequired();
webservices/server-integration/src/main/java/org/jboss/as/webservices/dmr/ClientConfigAdd.java:                context.restartRequired();
webservices/server-integration/src/main/java/org/jboss/as/webservices/dmr/ClientConfigRemove.java:                context.restartRequired();
webservices/server-integration/src/main/java/org/jboss/as/webservices/dmr/EndpointConfigAdd.java:                context.restartRequired();
webservices/server-integration/src/main/java/org/jboss/as/webservices/dmr/EndpointConfigRemove.java:                context.restartRequired();
webservices/server-integration/src/main/java/org/jboss/as/webservices/dmr/HandlerAdd.java:                        context.restartRequired();
webservices/server-integration/src/main/java/org/jboss/as/webservices/dmr/HandlerChainAdd.java:                        context.restartRequired();
webservices/server-integration/src/main/java/org/jboss/as/webservices/dmr/HandlerChainRemove.java:                    context.restartRequired();
webservices/server-integration/src/main/java/org/jboss/as/webservices/dmr/HandlerRemove.java:                    context.restartRequired();
webservices/server-integration/src/main/java/org/jboss/as/webservices/dmr/PropertyAdd.java:                        context.restartRequired();
webservices/server-integration/src/main/java/org/jboss/as/webservices/dmr/PropertyRemove.java:                        context.restartRequired();


--
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


More information about the jboss-jira mailing list