From 94e94ae0c3209ca19160a888eb50b777315a1009 Mon Sep 17 00:00:00 2001 From: SangBin Cho Date: Thu, 16 Jul 2020 16:39:42 -0700 Subject: [PATCH] [Core] Fix Java detached error (#9526) --- .../core_worker/lib/java/io_ray_runtime_RayNativeRuntime.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ray/core_worker/lib/java/io_ray_runtime_RayNativeRuntime.cc b/src/ray/core_worker/lib/java/io_ray_runtime_RayNativeRuntime.cc index 8f9e40de4..651395049 100644 --- a/src/ray/core_worker/lib/java/io_ray_runtime_RayNativeRuntime.cc +++ b/src/ray/core_worker/lib/java/io_ray_runtime_RayNativeRuntime.cc @@ -185,8 +185,8 @@ Java_io_ray_runtime_RayNativeRuntime_nativeGetActorIdOfNamedActor(JNIEnv *env, j const char *native_actor_name = env->GetStringUTFChars(actor_name, JNI_FALSE); auto full_name = GetActorFullName(global, native_actor_name); - auto *actor_handle = - ray::CoreWorkerProcess::GetCoreWorker().GetNamedActorHandle(full_name); + const auto *actor_handle = + ray::CoreWorkerProcess::GetCoreWorker().GetNamedActorHandle(full_name).first; ray::ActorID actor_id; if (actor_handle) { actor_id = actor_handle->GetActorID();