ray/cpp
jon-chuang 5f7224bd51
[C++ API] fix wrong arg handling for object references in TaskExecutor, TaskArgByReference (#21236)
Previously, ref arg is handled wrongly, serializing the object ref, instead of RayObject to be passed as args buffer to the user function. 

That's because CoreWorker is the component responsible for ensuring that all ObjectReferences are resolved and serialized into `RayObject`s at the time of the `task_execution_callback` invocation, not any component downstream of the callback. 

This resulted in the following error for large objects which are not turned into `TaskArg::value` due to being over 100KB.
```
C++ exception with description "Invalid: invalid arguments: std::bad_cast" thrown in the test body.
```
This was not caught due to lack of testing for large objects, which has now been added.
2022-01-17 12:08:15 +08:00
..
example [C++ API] Support object ref args (#19550) 2021-10-29 17:36:53 +08:00
include/ray [C++] Deprecated global named actor and global PGs. (#20468) 2021-11-18 23:21:59 +08:00
src/ray [C++ API] fix wrong arg handling for object references in TaskExecutor, TaskArgByReference (#21236) 2022-01-17 12:08:15 +08:00
BUILD.bazel [C++ worker] set native library path for shared library search (#19376) 2021-10-18 16:03:49 +08:00