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

   ### What changes were proposed in this PR?
   - Backport of #5737 to `release/v1.2`: bound the EndWorker termination retry 
loop with a configurable budget (`maxTerminationAttempts`, default 150) and 
per-attempt delay (`killRetryDelay`, default 200ms, ~30s total) instead of 
retrying forever.
   - When the budget is exhausted, the region fails loudly with an 
`IllegalStateException` that names every still-running worker and chains the 
underlying cause, so a stuck region surfaces to the user instead of hanging 
silently.
   - Adds `RegionExecutionCoordinator.DefaultMaxTerminationAttempts` / 
`DefaultKillRetryDelay`, threads the two new constructor params through, and 
extends the test fixtures with give-up and boundary coverage.
   ### Any related issues, documentation, discussions?
   Backport of #5737 to release/v1.2.
   ### How was this PR tested?
   - Run `sbt "WorkflowExecutionService/testOnly 
org.apache.texera.amber.engine.architecture.scheduling.RegionExecutionCoordinatorSpec"`
 (JDK 17); expect all 7 tests to pass (2 existing retry tests plus 5 new 
give-up/boundary tests).
   - Give-up path: a worker that never drains fails after the budget with 
"could not be terminated after N attempts" naming the stuck worker(s); the 
single-attempt, last-attempt-success, multi-worker aggregation, and 
default-budget cases are each pinned by a new spec.
   ### Was this PR authored or co-authored using generative AI tooling?
   Co-authored with Claude Opus 4.8 in compliance with ASF
   


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