Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-2945

Code is using ProcessType.HOST_CONTROLLER to identify an HC, ignoring EMBEDDED_HOST_CONTROLLER

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 3.0.0.Beta27
    • None
    • Management
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              kwills@redhat.com Ken Wills
              bstansbe@redhat.com Brian Stansberry
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: