Fix Java named actor bug (#9580)

This commit is contained in:
fangfengbin
2020-07-20 19:51:00 +08:00
committed by GitHub
parent 4accc16995
commit 8605b594f1
+3
View File
@@ -434,6 +434,9 @@ inline jobject NativeRayFunctionDescriptorToJavaStringList(
// Return an actor fullname with job id prepended if this tis a global actor.
inline std::string GetActorFullName(bool global, std::string name) {
if (name.empty()) {
return "";
}
return global ? name
: ::ray::CoreWorkerProcess::GetCoreWorker().GetCurrentJobId().Hex() + "-" +
name;