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

Confusing transitions of ControlledProcessState

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 3.0.0.Alpha23
    • 3.0.0.Alpha16
    • Management
    • None

      Starting a server into normal mode emits these transitions for the process running state:

      • starting -> suspended -> normal

      Similarly when transitioning to admin-only mode:

      • starting -> suspended -> admin-only

      Stopping from normal mode:

      • normal -> suspending -> suspended -> stopping

      Starting into suspended mode emits:

      • starting -> stopping -> stopped
        (and the stopped state represents that the server is actually in suspended mode)

      I find it confusing that:

      • During a normal start, it transitions through a state named suspended even though the server is not suspended. this is actually correct
      • During a stop, it is even more confusing, because it goes through one extra state - suspending which doesn't occur during start. - this is actually correct
      • The state to represent a suspended server is named stopped and not suspended.

              ehugonne1@redhat.com Emmanuel Hugonnet
              ehugonne1@redhat.com Emmanuel Hugonnet
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: