Repository navigation
Conversation
Signed-off-by: Edward Oakes <[email protected]>
Signed-off-by: Edward Oakes <[email protected]>
There was a problem hiding this comment.
Code Review
This pull request refactors ReplicaResult to eagerly fetch and register completion callbacks on the underlying ObjectRefs from the ObjectRefGenerator instead of lazily resolving them under a lock. However, the reviewer identified critical issues: _get_next_ref_n(1) returns a list rather than a single ObjectRef, which will cause an AttributeError when calling _on_completed, and there is a typo referencing self._object_ref_gen instead of self._obj_ref_gen.
Signed-off-by: Edward Oakes <[email protected]>
Signed-off-by: Edward Oakes <[email protected]>
Signed-off-by: Edward Oakes <[email protected]>
Signed-off-by: Edward Oakes <[email protected]>
Signed-off-by: Edward Oakes <[email protected]>
Signed-off-by: Edward Oakes <[email protected]>
Signed-off-by: Edward Oakes <[email protected]>
Signed-off-by: Edward Oakes <[email protected]>
Signed-off-by: Edward Oakes <[email protected]>
Signed-off-by: Rueian Huang <[email protected]>
Signed-off-by: Rueian Huang <[email protected]>
Signed-off-by: Rueian Huang <[email protected]>
Signed-off-by: Rueian Huang <[email protected]>
Signed-off-by: Rueian Huang <[email protected]>
Signed-off-by: Rueian Huang <[email protected]>
Signed-off-by: Rueian Huang <[email protected]>
Signed-off-by: Rueian Huang <[email protected]>
Signed-off-by: Edward Oakes <[email protected]>
Signed-off-by: Rueian Huang <[email protected]>
|
This pull request has been automatically marked as stale because it has not had You can always ask for help on our discussion forum or Ray's public slack channel. If you'd like to keep this open, just leave any comment, and the stale label will be removed. |
|
This pull request has been automatically closed because there has been no more activity in the 14 days Please feel free to reopen or open a new pull request if you'd still like this to be addressed. Again, you can always ask for help on our discussion forum or Ray's public slack channel. Thanks again for your contribution! |
…65243) Continue the #64451 to fix the long-standing issue in serve where `_to_object_ref` blocks until the underlying result has been produced. (#46893) ## Summary `_to_object_ref` used to block until the replica produced the user value. After this PR it returns the user `ObjectRef` as soon as the request is assigned, without fetching the value. On the default unary path (`handle_request_with_rejection`), `get_rejection_response()` peeks that ref with `_get_next_ref_n(1)` after the replica accepts. That is what makes `_to_object_ref` non-blocking on the user value. `ObjectRef._ready()` is a new separate presence wait (`CoreWorker::WaitAsync` on the local memory store, no plasma pull). Serve uses it so composition args are not enqueued until the upstream object exists. --------- Signed-off-by: Rueian Huang <[email protected]> Co-authored-by: Edward Oakes <[email protected]>
…ay-project#65243) Continue the ray-project#64451 to fix the long-standing issue in serve where `_to_object_ref` blocks until the underlying result has been produced. (ray-project#46893) ## Summary `_to_object_ref` used to block until the replica produced the user value. After this PR it returns the user `ObjectRef` as soon as the request is assigned, without fetching the value. On the default unary path (`handle_request_with_rejection`), `get_rejection_response()` peeks that ref with `_get_next_ref_n(1)` after the replica accepts. That is what makes `_to_object_ref` non-blocking on the user value. `ObjectRef._ready()` is a new separate presence wait (`CoreWorker::WaitAsync` on the local memory store, no plasma pull). Serve uses it so composition args are not enqueued until the upstream object exists. --------- Signed-off-by: Rueian Huang <[email protected]> Co-authored-by: Edward Oakes <[email protected]>
Integrates with #62741 to fix the long-standing issue in serve where
_to_object_refblocks until the underlying result has been produced.