Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "[Core] RetryObjectInPlasmaErrors tries to fetch all objects, not just ready ones." #31445

Merged
merged 1 commit into from
Jan 4, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 14 additions & 5 deletions src/ray/core_worker/core_worker.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1338,11 +1338,20 @@ void RetryObjectInPlasmaErrors(std::shared_ptr<CoreWorkerMemoryStore> &memory_st
for (auto iter = memory_object_ids.begin(); iter != memory_object_ids.end();) {
auto current = iter++;
const auto &mem_id = *current;
auto found = memory_store->GetIfExists(mem_id);
if (found != nullptr && found->IsInPlasmaError()) {
plasma_object_ids.insert(mem_id);
ready.erase(mem_id);
memory_object_ids.erase(current);
auto ready_iter = ready.find(mem_id);
if (ready_iter != ready.end()) {
std::vector<std::shared_ptr<RayObject>> found;
RAY_CHECK_OK(memory_store->Get({mem_id},
/*num_objects=*/1,
/*timeout=*/0,
worker_context,
/*remote_after_get=*/false,
&found));
if (found.size() == 1 && found[0]->IsInPlasmaError()) {
plasma_object_ids.insert(mem_id);
ready.erase(ready_iter);
memory_object_ids.erase(current);
}
}
}
}
Expand Down