[jboss-jira] [JBoss JIRA] (WFCORE-2945) Code is using ProcessType.HOST_CONTROLLER to identify an HC, ignoring EMBEDDED_HOST_CONTROLLER

Brian Stansberry (JIRA) issues at jboss.org
Mon Jun 12 10:44:00 EDT 2017


Brian Stansberry created WFCORE-2945:
----------------------------------------

             Summary: Code is using ProcessType.HOST_CONTROLLER to identify an HC, ignoring EMBEDDED_HOST_CONTROLLER
                 Key: WFCORE-2945
                 URL: https://issues.jboss.org/browse/WFCORE-2945
             Project: WildFly Core
          Issue Type: Bug
          Components: Domain Management
            Reporter: Brian Stansberry
            Assignee: Ken Wills


RestartParentResourceHandlerBase.requiresRuntime is not accounting for ProcessType.EMBEDDED_HOST_CONTROLLER in its logic, assuming that ProcessType.HOST_CONTROLLER is the only enum value for an HC. This is wrong and is the cause of WFLY-8923.

There may be other similar problems in the code. All uses of ProcessType.HOST_CONTROLLER should be inspected. Probably a ProcessType.isHostController() method should be added (I believe just returning !isServer()) to help guide coders to use the API of ProcessType and not rely on the enum values.



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the jboss-jira mailing list