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

   ### Task Summary
   
   `WorkerExecution` 
(`amber/src/main/scala/org/apache/texera/amber/engine/architecture/deploysemantics/layer/WorkerExecution.scala`)
 tracks the latest `(state, stats)` for a worker via timestamp-guarded updates 
and lazily allocates per-port executions, but currently has no unit tests. Add 
`WorkerExecutionSpec` covering:
   
   - Default state is `UNINITIALIZED` with zeroed stats
   - `update(state)` only applies when the timestamp is strictly newer
   - `update(state, stats)` updates both atomically when newer; ignores stale 
timestamps
   - `update(stats)` updates only the stats portion
   - `getInputPortExecution` / `getOutputPortExecution` lazily create and reuse 
a single instance per port id, with separate input vs output namespaces
   
   ### 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