8000 [Feature] Able to access objects put in cross language · Issue #19873 · ray-project/ray · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
[Feature] Able to access objects put in cross language #19873
Open
@kira-lin

Description

@kira-lin

Search before asking

  • I had searched in the issues and found no similar feature requirement.

Description

Cross languge tasks/actors can only return data as results of functions. In some cases, this is not enough. It would be more convenient if Java can return object ref to python, because the worker that returns data does not have to have the data locally. Of course, such object cannot be an arbitrary java object. In our application, data is byte array, so there should be no problem with serialization. Currently, java cannot return object ref(s) to python. Object ID can be passed, since it is byte array, but ref = ray.ObjectRef(objectId); ray.get(ref) hangs.

Use case

For example, in raydp, data are put into ray object store by java executors, but a designated actor, called holder, owns all the data since executors may exit at any time. Python application wants to get data from the holder, but holder cannot return the data directly because data is actually distributed on many nodes. A better solution is to pass an object ref to python, and any python worker can get the object.

Related issues

No response

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issue moderate in impact or severityenhancementRequest for new feature and/or capabilitypending-cleanupThis issue is pending cleanup. It will be removed in 2 weeks after being assigned.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0