[jboss-jira] [JBoss JIRA] (WFCORE-693) Don't require the exclusive management lock to run the "kill" or "destroy" ops on the HC

Brian Stansberry (JIRA) issues at jboss.org
Wed May 13 15:09:19 EDT 2015


     [ https://issues.jboss.org/browse/WFCORE-693?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brian Stansberry moved WFLY-4631 to WFCORE-693:
-----------------------------------------------

          Project: WildFly Core  (was: WildFly)
              Key: WFCORE-693  (was: WFLY-4631)
      Component/s: Domain Management
                       (was: Domain Management)
    Fix Version/s: 2.0.0.Beta1
                       (was: 10.0.0.Beta1)


> Don't require the exclusive management lock to run the "kill" or "destroy" ops on the HC
> ----------------------------------------------------------------------------------------
>
>                 Key: WFCORE-693
>                 URL: https://issues.jboss.org/browse/WFCORE-693
>             Project: WildFly Core
>          Issue Type: Enhancement
>          Components: Domain Management
>            Reporter: Brian Stansberry
>             Fix For: 2.0.0.Beta1
>
>
> ServerProcessHandlers.execute is calling context.getServiceRegistry(true) in order to trigger an authorization check. Problem is that also means the exclusive lock needs to be acquired.
> There are other ways to handle this. See https://github.com/wildfly/wildfly-core/blob/master/server/src/main/java/org/jboss/as/server/operations/ServerShutdownHandler.java#L90 for a similar case.
> Side issue: the constructor for ServerProcessHandlers should be package-protected. Same with the "serverInventory" field. This isn't a bug, it's just being tidy and locking things down as much as possible.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


More information about the jboss-jira mailing list