Repository navigation
[2.60.0][train] Revert Train V2 reservation pinning (#66002) - #67347
Merged
Merged
Conversation
…vations (#66002)" This reverts commit e39557f. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Signed-off-by: Sai Miduthuri <[email protected]>
Contributor
There was a problem hiding this comment.
Code Review
This pull request removes the worker pinning logic to AutoscalingCoordinator reservations in Ray Train V2, simplifying the resource request client and removing associated tests and the WorkerGroupStartupTimeoutError. Feedback on the changes identifies a critical bug in ElasticScalingPolicy._get_reserved_resources where a failed query clears the cached successful results instead of falling back to the last known good state. Additionally, a minor typo ("seconda") was found in a comment in autoscaling_coordinator_client.py.
matthewdeng
approved these changes
Oct 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Reverts #66002 on
releases/2.60.0. This is the release-branch counterpart of #67337, which reverts #66646 and then #66002 on master. This branch never had #66646, so only #66002 is reverted here.Why
#66002 pins every Train V2 worker to a node from the AutoscalingCoordinator's reservation. #67337 explains why that reservation isn't accurate enough to pin to:
When a pin is wrong, the pinned placement group never gets placed, and the controller retries the same pins indefinitely.
On this branch, the
train_elastic_e2e_with_node_killing.awsrelease test failed in 3 of its 5 weekly release-pipeline runs. In builds 109533 and 111090 it looped onWorkerGroupStartupTimeoutErroruntil the job timed out. #66766, where STRICT_SPREAD runs can wait forever, also bisects to #66002.After this revert, Train V2 schedules workers the way it did in 2.59. #66001 and #66370 stay, as in #67337, so Train still uses the coordinator's reservation to count how many workers fit.
This is the alternative to #67327, which cherry-picks #66646 onto this branch instead. If this PR merges, #67327 should be closed.
Revert details
git revert e39557f46capplied with no conflicts, and git merged #66225's later change tocontroller.pyautomatically. The revert touches 11 files, with 70 insertions and 759 deletions.get_reserved_resources.Not a duplicate: no PR against
releases/2.60.0reverts #66002. #67337 targetsmaster.Testing
I didn't run the unit tests locally. CI runs them on this PR:
:bullettrain_front: ml: train v2 testsruns thetrain_v2-tagged tests, includingtest_controller.py,test_elastic_scaling_policy.py,test_autoscaling_coordinator_client.pyandtest_failure_policy.py.:train: ml: train v1 testsrunspython/ray/train/tests/test_autoscaling_coordinator_client.py.:train: ml: data integration testsrunstest_data_integration.py.#67337 ran the same test files against the same resulting code on master, and they passed.
AI assistance was used to prepare this revert.
🤖 Generated with Claude Code