Skip to content

[2.60.0][train] Revert Train V2 reservation pinning (#66002) - #67347

Merged
sai-miduthuri merged 1 commit into
releases/2.60.0from
sai-miduthuri/revert-66002-2.60.0
Oct 26, 2026
Merged

sai-miduthuri merged 1 commit into
releases/2.60.0from
sai-miduthuri/revert-66002-2.60.0

Conversation

@sai-miduthuri

Copy link
Copy Markdown
Contributor

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:

  • It counts draining nodes and capacity held by work that never went through the coordinator.
  • It moves when nodes join.

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.aws release test failed in 3 of its 5 weekly release-pipeline runs. In builds 109533 and 111090 it looped on WorkerGroupStartupTimeoutError until 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 e39557f46c applied with no conflicts, and git merged #66225's later change to controller.py automatically. The revert touches 11 files, with 70 insertions and 759 deletions.

Not a duplicate: no PR against releases/2.60.0 reverts #66002. #67337 targets master.

Testing

Command Result
pre-commit, run as the commit hook on the 11 changed files Passed (ruff, black, pydoclint, Ray Train circular imports, and the other applicable hooks)

I didn't run the unit tests locally. CI runs them on this PR:

  • :bullettrain_front: ml: train v2 tests runs the train_v2-tagged tests, including test_controller.py, test_elastic_scaling_policy.py, test_autoscaling_coordinator_client.py and test_failure_policy.py.
  • :train: ml: train v1 tests runs python/ray/train/tests/test_autoscaling_coordinator_client.py.
  • :train: ml: data integration tests runs test_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

…vations (#66002)"

This reverts commit e39557f.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Signed-off-by: Sai Miduthuri <[email protected]>
@sai-miduthuri
sai-miduthuri requested a review from a team as a code owner October 23, 2026 19:58

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@ray-gardener ray-gardener Bot added train Ray Train Related Issue release-test release test labels Oct 24, 2026
@sai-miduthuri
sai-miduthuri merged commit a574009 into releases/2.60.0 Oct 26, 2026
7 checks passed
@sai-miduthuri
sai-miduthuri deleted the sai-miduthuri/revert-66002-2.60.0 branch October 26, 2026 10:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

go add ONLY when ready to merge, run all tests release-test release test train Ray Train Related Issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants