[GCS]Fix a bug that creates invalid connection (#11590)

Co-authored-by: 灵洵 <fengbin.ffb@antfin.com>
This commit is contained in:
fangfengbin
2020-10-27 10:08:06 -07:00
committed by GitHub
co-authored by 灵洵
parent d9f1874e34
commit ebe9a8865c
@@ -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());