Skip to content

[core] Remove experimental _owner support for ray.put#63520

Merged
edoakes merged 9 commits into
ray-project:masterfrom
edoakes:eoakes/remove-owner
May 21, 2026
Merged

[core] Remove experimental _owner support for ray.put#63520
edoakes merged 9 commits into
ray-project:masterfrom
edoakes:eoakes/remove-owner

Conversation

@edoakes

@edoakes edoakes commented May 19, 2026

Copy link
Copy Markdown
Collaborator

Removes the experimental argument to assign a different owner when ray.puting an object. This adds additional branches to the (already complex) object ownership model.

This experimental argument was originally added for RayDP, but its use was removed in: ray-project/raydp@5a98b1e

edoakes added 2 commits May 19, 2026 14:05
Signed-off-by: Edward Oakes <ed.nmi.oakes@gmail.com>
Signed-off-by: Edward Oakes <ed.nmi.oakes@gmail.com>
@edoakes edoakes added the go add ONLY when ready to merge, run all tests label May 19, 2026

@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 removes the experimental functionality that allowed users to manually assign an owner to objects created via ray.put. The changes involve removing the _owner parameter from the Python API, the owner parameter from the Java API, and the underlying AssignObjectOwner RPC and reference counting logic in the C++ Core Worker. Additionally, corresponding tests, Ray Client support, and internal protobuf definitions for this feature have been deleted across the codebase. I have no feedback to provide as there were no review comments to assess.

edoakes added 2 commits May 20, 2026 07:48
Signed-off-by: Edward Oakes <ed.nmi.oakes@gmail.com>
@edoakes edoakes changed the title [WIP] Remove _owner [core] Remove experimental _owner support for ray.put May 20, 2026
@edoakes

edoakes commented May 20, 2026

Copy link
Copy Markdown
Collaborator Author

FYI @pang-wu -- removing this starting in Ray 2.56 as we discussed offline.

@edoakes edoakes marked this pull request as ready for review May 20, 2026 16:37
Signed-off-by: Edward Oakes <ed.nmi.oakes@gmail.com>
@edoakes edoakes force-pushed the eoakes/remove-owner branch from fd6e85d to d06d01e Compare May 20, 2026 16:38

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

Reviewed by Cursor Bugbot for commit d06d01e. Configure here.

Comment thread src/ray/protobuf/core_worker.proto

@Yicheng-Lu-llll Yicheng-Lu-llll left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ray-gardener ray-gardener Bot added the core Issues that should be addressed in Ray Core label May 20, 2026
@edoakes edoakes merged commit c11f9b5 into ray-project:master May 21, 2026
5 of 6 checks passed
Neelansh-Khare pushed a commit to Neelansh-Khare/ray-clone that referenced this pull request Jun 5, 2026
…t#63520)

Removes the experimental argument to assign a different owner when
`ray.put`ing an object. This adds additional branches to the (already
complex) object ownership model.

This experimental argument was originally added for RayDP, but its use
was removed in:
ray-project/raydp@5a98b1e

---------

Signed-off-by: Edward Oakes <ed.nmi.oakes@gmail.com>
Signed-off-by: Neelansh Khare <kharen@uci.edu>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

2 participants