Skip to content

Conversation

@DaveCTurner
Copy link
Contributor

We rely on nodes stopping gracefully in integ tests, rather than timing
out and using ThreadPool#shutdownNow to ignore any remaining cleanup
work. Today we throw an IOException if the shutdown wasn't graceful.
With this commit we move to an AssertionError so we can be sure that
any such problems result in a test failure.

Relates #85131

We rely on nodes stopping gracefully in integ tests, rather than timing
out and using `ThreadPool#shutdownNow` to ignore any remaining cleanup
work. Today we throw an `IOException` if the shutdown wasn't graceful.
With this commit we move to an `AssertionError` so we can be sure that
any such problems result in a test failure.

Relates elastic#85131
@DaveCTurner DaveCTurner added >test Issues or PRs that are addressing/adding tests :Core/Infra/Node Lifecycle Node startup, bootstrapping, and shutdown v8.2.0 labels Mar 22, 2022
@elasticmachine elasticmachine added the Team:Core/Infra Meta label for core/infra team label Mar 22, 2022
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra (Team:Core/Infra)

Copy link
Contributor

@original-brownbear original-brownbear left a comment

Choose a reason for hiding this comment

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

LGTM (assuming this becomes green)

@DaveCTurner DaveCTurner added the auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) label Mar 22, 2022
@elasticsearchmachine elasticsearchmachine merged commit 7805588 into elastic:master Mar 22, 2022
@DaveCTurner DaveCTurner deleted the 2022-03-22-node-close-timeout-assertion branch March 22, 2022 18:46
original-brownbear added a commit to original-brownbear/elasticsearch that referenced this pull request Apr 25, 2022
Remove the blocking wait when releasing safe commits or store references on the recovery source.
This seems safe enough these days with elastic#85238 not tripping
and the assertion that makes sure we never submit the close task to an already shut-down pool

closes elastic#85839
original-brownbear added a commit that referenced this pull request May 17, 2022
Remove the blocking wait when releasing safe commits or store references on the recovery source.
This seems safe enough these days with #85238 not tripping
and the assertion that makes sure we never submit the close task to an already shut-down pool

closes #85839
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!) :Core/Infra/Node Lifecycle Node startup, bootstrapping, and shutdown Team:Core/Infra Meta label for core/infra team >test Issues or PRs that are addressing/adding tests v8.2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants