Skip to content

Conversation

DonalEvans
Copy link
Contributor

Backports the following commits to 9.2:

…elastic#135966)

AbstractProcessWorkerExecutorService.notifyQueueRunnables() was making
an incorrect assumption that all AbstractRunnables that were submitted
for execution would be queued as AbstractRunnables. However,
PriorityProcessWorkerExecutorService wraps AbstractRunnables in
OrderedRunnable before queueing them, and since OrderedRunnable is not
an AbstractRunnable, these were skipped when notifyQueueRunnables()
drained the queue, leading to potential hangs.

- Make OrderedRunnable extend AbstractRunnable and pass onFailure() and
  onRejection() calls to the AbstractRunnable it wraps
- Ensure that notifyQueueRunnables() is called and the executor marked
  as shut down if an exception is thrown from start()
- Add unit tests
- Update docs/changelog/135966.yaml

Closes elastic#134651
@DonalEvans DonalEvans added :ml Machine learning >bug auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport Team:ML Meta label for the ML team labels Oct 7, 2025
@elasticsearchmachine elasticsearchmachine merged commit 04b6cf1 into elastic:9.2 Oct 7, 2025
34 checks passed
@DonalEvans DonalEvans deleted the backport/9.2/pr-135966 branch October 7, 2025 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport >bug :ml Machine learning Team:ML Meta label for the ML team v9.2.1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants