Skip to content

[Core] Fix issue #67414, avoid marking the head node dead on same-ID registration retries. - #67417

Merged
rueian merged 1 commit into
ray-project:masterfrom
Pengkun-ZHU:user-pzhu-issue67414
Oct 27, 2026
Merged

rueian merged 1 commit into
ray-project:masterfrom
Pengkun-ZHU:user-pzhu-issue67414

Conversation

@Pengkun-ZHU

Copy link
Copy Markdown
Contributor

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

…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]>
@Pengkun-ZHU
Pengkun-ZHU requested a review from a team as a code owner October 26, 2026 10:57

@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 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.

@ray-gardener ray-gardener Bot added core Issues that should be addressed in Ray Core community-contribution Contributed by the community labels Oct 26, 2026
@rueian
rueian enabled auto-merge (squash) October 27, 2026 21:05
@github-actions github-actions Bot added the go add ONLY when ready to merge, run all tests label Oct 27, 2026
@rueian
rueian merged commit a450e8d into ray-project:master Oct 27, 2026
8 checks passed
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community-contribution Contributed by the community core Issues that should be addressed in Ray Core go add ONLY when ready to merge, run all tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Core] Crash upon GCS recovery from persistent backend

2 participants