Repository navigation
[Core] Prevent placement group resource leaks after GCS restart - #68642
Open
Pengkun-ZHU wants to merge 1 commit into
Open
Pengkun-ZHU wants to merge 1 commit into
Pengkun-ZHU wants to merge 1 commit into
Conversation
Signed-off-by: pzhu <[email protected]>
Contributor
There was a problem hiding this comment.
Code Review
This pull request updates the GCS placement group manager to reconcile and persist the death of a placement group's creator actor and job across GCS restarts. Specifically, during initialization, the manager now checks the status of the creator actor and job, marks them as dead if they are missing or dead in the GCS initialization data, and persists this state to the placement group table storage if the placement group is not detached. Additionally, tests have been updated to verify this new reconciliation behavior. There are no review comments, so I have no feedback to provide.
This branch has not been deployed
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.
Description
If an actor creates a non-detached placement group and exits while its job is still running, Ray correctly keeps the group. Before this change, if GCS restarted before the job exited, it could forget the actor had died. When the job finished, GCS would leave the group’s bundles reserved instead of releasing them.
This PR persists the creator actor’s death and reconciles ownership against the stored actor and job records during recovery. GCS now checks whether a placement group should be removed before retaining its bundles or recommitting a
PREPAREDgroup.Related issues
Fixes #68639.
Additional information