-
Notifications
You must be signed in to change notification settings - Fork 6.7k
[Core] Ignore stale ReportWorkerBacklogRequest #50280
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
Conversation
Signed-off-by: Jiajun Yao <jeromeyjj@gmail.com>
src/ray/raylet/node_manager.cc
Outdated
send_reply_callback(Status::OK(), nullptr, nullptr); | ||
return; | ||
} | ||
|
||
local_task_manager_->ClearWorkerBacklog(worker_id); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if worker_id is not in the worker_pool, should one ClearWorkerBacklog(worker_id) anyway to set backlog to empty?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That has already been called when the worker is marked dead.
if (worker_pool.GetRegisteredWorker(worker_id) == nullptr && | ||
worker_pool.GetRegisteredDriver(worker_id) == nullptr) { | ||
// The worker is already disconnected. | ||
send_reply_callback(Status::OK(), nullptr, nullptr); | ||
return; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the actual fix. The remaining of this PR is to make it unit testable.
Signed-off-by: Jiajun Yao <jeromeyjj@gmail.com>
Signed-off-by: Jiajun Yao <jeromeyjj@gmail.com>
Signed-off-by: Jiajun Yao <jeromeyjj@gmail.com>
Why are these changes needed?
For
ReportWorkerBacklogRequest
that's received after the core worker is marked as dead, we should ignore. Otherwise, we will have permanently leaked backlogs.Related issue number
Checks
git commit -s
) in this PR.scripts/format.sh
to lint the changes in this PR.method in Tune, I've added it in
doc/source/tune/api/
under thecorresponding
.rst
file.