carloea2 opened a new pull request, #8083:
URL: https://github.com/apache/texera/pull/8083

   ### What changes were proposed in this PR?
   
   `OperatorExecution.initWorkerExecution` now checks whether the worker ID is 
already a key in the execution map. This prevents a repeated initialization 
from silently replacing the existing execution.
   
   The old characterization and pending tests are replaced with one active 
regression test. It verifies both that the repeated initialization fails and 
that the original execution remains registered.
   
   Before: A repeated worker ID replaced the original execution.
   
   After: A repeated worker ID raises `AssertionError` and preserves the 
original execution.
   
   This change removes 19 lines overall.
   
   ### Any related issues, documentation, discussions?
   
   Closes #8082
   
   ### How was this PR tested?
   
   The regression test failed before the production change with 13 tests 
passing and 1 test failing. It passed after the change with all 14 tests 
passing.
   
   ```shell
   sbt "set DAO / Compile / sourceGenerators := Seq.empty" 
"WorkflowExecutionService / Test / testOnly 
org.apache.texera.amber.engine.architecture.coordinator.execution.OperatorExecutionSpec"
   sbt "set DAO / Compile / sourceGenerators := Seq.empty" "scalafixAll --check"
   sbt scalafmtCheckAll
   ```
   
   ### Was this PR authored or co-authored using generative AI tooling?
   
   Generated-by: OpenAI Codex, GPT-5


-- 
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