ray icon indicating copy to clipboard operation
ray copied to clipboard

[core] Resource leak on Raylet when CommitBundleResources RPC fails and retries

Open Sparks0219 opened this issue 1 month ago • 1 comments

What happened + What you expected to happen

When a CommitBundleResources RPC fails, OnAllBundleCommitRequestReturned still adds the bundle to committed_bundle_location_index_ under its old node, and AddBundleLocations doesn't overwrite existing entries. After the bundle is rescheduled to a new node, the index still points at the old one. Removing the placement group then never releases the bundle on the new node.

Follow up on #66769

Versions / Dependencies

Ray 2.59

Reproduction script

N/A

Issue Severity

None

Sparks0219 avatar Oct 09 '26 01:10 Sparks0219

Hi @Sparks0219, I'd like to work on this. I'd make AddBundleLocations overwrite the stale entry (or clear it on retry) when a bundle moves to a new node, with a unit test for the retry path. Okay if I pick it up?

rahulsjha avatar Nov 21 '26 20:11 rahulsjha