Repository navigation
[Core] Fix issue #68611. During recovery, rebuild the in-memory references from the persisted metadata. - #68622
Pengkun-ZHU wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
Code Review
This pull request updates the initialization processes in GcsActorManager and GcsJobManager to register URI references with the runtime_env_manager_ for detached actors and running jobs, respectively. The feedback recommends checking if the actor task specification actually contains runtime environment information before calling AddURIReference in GcsActorManager to prevent unnecessary overhead and maintain consistency with the job manager's implementation.
| if (actor->IsDetached()) { | ||
| runtime_env_manager_.AddURIReference( | ||
| actor->GetActorID().Hex(), actor_task_spec.runtime_env_info()); | ||
| } |
There was a problem hiding this comment.
To avoid unnecessary overhead and maintain consistency with the job manager's implementation, we should check if the actor task specification actually contains runtime environment information before calling AddURIReference. This prevents invoking the reference manager with empty runtime environment metadata.
if (actor->IsDetached() && actor_task_spec.has_runtime_env_info()) {\n runtime_env_manager_.AddURIReference(\n actor->GetActorID().Hex(), actor_task_spec.runtime_env_info());\n }…emory references from the persisted metadata Signed-off-by: pzhu <[email protected]>
28ad519 to
cce6ad2
Compare
Description
This is also a follow-up of PR #67417. This very issue is also encountered after I resolve the dead node trouble.
In my use case, this issue causes two problems below.
I can extend test coverage for these two issues after this approach is examined and approved.
Related issues
Fix #68611.
Additional information