aglinxinyuan opened a new issue, #4739:
URL: https://github.com/apache/texera/issues/4739

   ### Task Summary
   
   `WorkerStateManager` 
(`amber/src/main/scala/org/apache/texera/amber/engine/common/statetransition/WorkerStateManager.scala`)
 wires the worker-side state-transition graph but currently has no dedicated 
unit tests. Add `WorkerStateManagerSpec` covering the graph contract:
   
   - Default initial state is UNINITIALIZED; explicit initial state is honored
   - Allowed: UNINITIALIZED → READY, READY → {RUNNING, PAUSED, COMPLETED}, 
RUNNING → {PAUSED, COMPLETED}, PAUSED → RUNNING
   - COMPLETED is terminal: rejects forward transitions; self-transition is a 
no-op
   - TERMINATED is absent from the graph and rejected from any state
   - PAUSED → COMPLETED is rejected (only RUNNING → COMPLETED is permitted)
   
   ### Priority
   P3 – Low
   
   ### Task Type
   - [x] Testing / QA


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to