ray
ray copied to clipboard
[core] Resource leak on Raylet when CommitBundleResources RPC fails and retries
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
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?