Skip to content

Conversation

DonalEvans
Copy link
Contributor

Backport

This will backport the following commits from main to 9.1:

Questions ?

Please refer to the Backport tool documentation

…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

(cherry picked from commit d3d013e)
@DonalEvans DonalEvans added >bug :ml Machine learning Team:ML Meta label for the ML team auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) labels Oct 7, 2025
@elasticsearchmachine elasticsearchmachine merged commit 64fcb0c into elastic:9.1 Oct 7, 2025
34 of 35 checks passed
@DonalEvans DonalEvans deleted the backport/9.1/pr-135966 branch October 7, 2025 20:32
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.1.6
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants