Skip to content

[9.6] [ML] Fix lost shutdown wakeup in the spawned process tracker thread (#3287) - #3326

Merged
elastic-vault-github-plugin-prod[bot] merged 1 commit into
9.6from
backport/9.6/pr-3287
Nov 23, 2026
Merged

elastic-vault-github-plugin-prod[bot] merged 1 commit into
9.6from
backport/9.6/pr-3287

Conversation

@elastic-vault-github-plugin-prod

Copy link
Copy Markdown
Contributor

Backport

This will backport the following commits from main to 9.6:

Questions ?

Please refer to the Backport tool documentation

…3287)

CTrackerThread::run() checked m_Shutdown outside the mutex and only then
took the mutex and waited. If shutdown() set the flag and signalled in
between, the signal was lost and, with no children to reap, the thread
waited forever, so ~CDetachedProcessSpawner blocked in pthread_join.

This was introduced by the restructuring in #3217 (the old loop held the
mutex across the check and the wait). It has been hanging unit tests in CI
since mid October. Check the flag under the mutex immediately before
waiting.

(cherry picked from commit 7fe8350)

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Automated approval: clean backport of an already-reviewed change. Auto-merge is armed and will merge once the required CI checks are green.

@elastic-vault-github-plugin-prod
elastic-vault-github-plugin-prod Bot merged commit dceaa7a into 9.6 Nov 23, 2026
40 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-backport Automatically merge backport PRs when CI passes backport >bug :ml v9.6.1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants