diff --git a/src/ray/gcs/gcs_server/gcs_actor_manager.cc b/src/ray/gcs/gcs_server/gcs_actor_manager.cc index d65ae6b89..b0205c565 100644 --- a/src/ray/gcs/gcs_server/gcs_actor_manager.cc +++ b/src/ray/gcs/gcs_server/gcs_actor_manager.cc @@ -952,14 +952,6 @@ void GcsActorManager::LoadInitialData(const EmptyCallback &done) { PollOwnerForActorOutOfScope(actor); } - auto &workers = owners_[actor->GetNodeID()]; - auto it = workers.find(actor->GetWorkerID()); - if (it == workers.end()) { - std::shared_ptr client = - worker_client_factory_(actor->GetOwnerAddress()); - workers.emplace(actor->GetOwnerID(), Owner(std::move(client))); - } - if (!actor->GetWorkerID().IsNil()) { RAY_CHECK(!actor->GetNodeID().IsNil()); node_to_workers[actor->GetNodeID()].emplace_back(actor->GetWorkerID());