Skip to content

Conversation

@albertzaharovits
Copy link
Contributor

The Closeable#close method on Realms was never called upon node
shutdown. This is a problem when realms (eg OIDC) create non-daemon
threads that expect to be stopped when the close method is invoked.
Specifically, it is a problem on Windows where the graceful shutdown is
implemented by terminatting all non-daemon threads (see Bootstrap#stop
and Bootstrap#initializeNatives).

Backport of #87429
Closes #86286

The `Closeable#close` method on `Realm`s was never called upon node
shutdown. This is a problem when realms (eg OIDC) create non-daemon
threads that expect to be stopped when the `close` method is invoked.
Specifically, it is a problem on Windows where the graceful shutdown is
implemented by terminatting all non-daemon threads (see `Bootstrap#stop`
and `Bootstrap#initializeNatives`).

Closes elastic#86286
@albertzaharovits albertzaharovits added >bug :Security/Security Security issues without another label backport auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) v7.17.5 labels Jun 7, 2022
@albertzaharovits albertzaharovits self-assigned this Jun 7, 2022
@elasticmachine elasticmachine added the Team:Security Meta label for security team label Jun 7, 2022
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-security (Team:Security)

@elasticsearchmachine elasticsearchmachine merged commit e699a62 into elastic:7.17 Jun 7, 2022
@albertzaharovits albertzaharovits deleted the backport/7.17/pr-87429 branch June 7, 2022 15:02
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 :Security/Security Security issues without another label Team:Security Meta label for security team v7.17.5

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants