Skip to content

Commit

Permalink
[GCS]Fix a bug that creates invalid connection (#11590)
Browse files Browse the repository at this point in the history
Co-authored-by: 灵洵 <fengbin.ffb@antfin.com>
  • Loading branch information
ffbin and 灵洵 authored Oct 27, 2020
1 parent d9f1874 commit ebe9a88
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/ray/gcs/gcs_server/gcs_actor_manager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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<rpc::CoreWorkerClientInterface> 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());
Expand Down

0 comments on commit ebe9a88

Please sign in to comment.