Skip to content

[ML] Fix submit after shutdown in process worker service #83645

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

Merged
merged 2 commits into from
Feb 8, 2022
Merged
Show file tree
Hide file tree
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
6 changes: 6 additions & 0 deletions docs/changelog/83645.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
pr: 83645
summary: Fix submit after shutdown in process worker service
area: Machine Learning
type: bug
issues:
- 83633
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ public synchronized void execute(Runnable command) {
EsRejectedExecutionException rejected = new EsRejectedExecutionException(processName + " worker service has shutdown", true);
if (command instanceof AbstractRunnable runnable) {
runnable.onRejection(rejected);
return;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤦 sneaky

} else {
throw rejected;
}
Expand Down