Repository navigation
[Core] Fix issue #67414, avoid marking the head node dead on same-ID registration retries. - #67417
Merged
Merged
Conversation
…on same-ID registration retries. Fixes ray-project#67414. Prevent a retried head-node registration from marking that same head node dead. If GCS persists a head-node registration but its reply is lost, the raylet can retry the request with the same node ID. This can also happen across a GCS restart when the original registration is recovered from persistent storage. Note that the case where two distinct node lifetimes sharing the same ID are outside the supported identity model of this PR. Ray normally generates fresh node IDs randomly from a 224-bit ID space, making accidental collisions negligibly likely. Deliberately reusing an ID for a different node is not supported by this fix; matching IP addresses or hostnames do not establish matching node identity. Signed-off-by: pzhu <[email protected]>
Contributor
There was a problem hiding this comment.
Code Review
This pull request modifies GcsNodeManager::HandleRegisterNode to ensure that re-registering the same head node does not trigger a node failure event. It also adds a corresponding unit test TestReregisterSameHeadNode to verify this behavior. There are no review comments, and the changes look correct.
rueian
approved these changes
Oct 27, 2026
rueian
enabled auto-merge (squash)
October 27, 2026 21:05
justinyeh1995
pushed a commit
to justinyeh1995/ray
that referenced
this pull request
Oct 28, 2026
…on same-ID registration retries. (ray-project#67417) ## Description Prevent a retried head-node registration from marking that same head node dead. If GCS persists a head-node registration but its reply is lost, the raylet can retry the request with the same node ID. This can also happen across a GCS restart when the original registration is recovered from persistent storage. Note that the case where two distinct node lifetimes sharing the same ID are outside the supported identity model of this PR. Ray normally generates fresh node IDs randomly from a 224-bit ID space, making accidental collisions negligibly likely. ## Related issues Fixes ray-project#67414. ## Additional information Signed-off-by: pzhu <[email protected]>
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
Prevent a retried head-node registration from marking that same head node dead. If GCS persists a head-node registration but its reply is lost, the raylet can retry the request with the same node ID. This can also happen across a GCS restart when the original registration is recovered from persistent storage.
Note that the case where two distinct node lifetimes sharing the same ID are outside the supported identity model of this PR. Ray normally generates fresh node IDs randomly from a 224-bit ID space, making accidental collisions negligibly likely.
Related issues
Fixes #67414.
Additional information