]
Brian Stansberry commented on WFCORE-2145:
------------------------------------------
I updated the description to reflect the downstream issue so it's clear what's
expected here.
Confusing transitions of ControlledProcessState
-----------------------------------------------
Key: WFCORE-2145
URL:
https://issues.jboss.org/browse/WFCORE-2145
Project: WildFly Core
Issue Type: Bug
Components: Domain Management
Affects Versions: 3.0.0.Alpha16
Reporter: ehsavoie Hugonnet
Assignee: ehsavoie Hugonnet
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}}.