Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mark node seen task as successful #106502

Merged
merged 2 commits into from
Mar 19, 2024

Conversation

rjernst
Copy link
Member

@rjernst rjernst commented Mar 19, 2024

The task for updating cluster state with nodes seen by shutdown was previously switched to use batched tasks. However, the task is never marked as complete, which leads to the tasks piling up. This commit marks the task as complete and re-enables a test that appears to succeed now.

closes #76689

The task for updating cluster state with nodes seen by shutdown was
previously switched to use batched tasks. However, the task is never
marked as complete, which leads to the tasks piling up. This commit
marks the task as complete and re-enables a test that appears to succeed
now.

closes elastic#76689
@rjernst rjernst added >bug :Core/Infra/Node Lifecycle Node startup, bootstrapping, and shutdown labels Mar 19, 2024
@elasticsearchmachine
Copy link
Collaborator

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

@elasticsearchmachine elasticsearchmachine added v8.14.0 Team:Core/Infra Meta label for core/infra team labels Mar 19, 2024
@@ -88,11 +87,12 @@ public Settings onNodeStopped(String nodeName) throws Exception {
});

internalCluster().stopNode(nodeToRestartName);
putNodeShutdown(nodeToRestartId, SingleNodeShutdownMetadata.Type.REMOVE, null);
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do we need to have a call to putNodeShutdown here and in the onNodeStopped callback? Aren't we just shutting it down once?

Copy link
Member Author

Choose a reason for hiding this comment

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

Oops, that was not intended

Copy link
Member Author

Choose a reason for hiding this comment

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

Removed in eb7e612

Copy link
Contributor

@williamrandolph williamrandolph left a comment

Choose a reason for hiding this comment

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

LGTM!

@rjernst rjernst merged commit 83bc94a into elastic:main Mar 19, 2024
14 checks passed
@rjernst rjernst deleted the shutdown/reenable_seen_test branch March 19, 2024 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug :Core/Infra/Node Lifecycle Node startup, bootstrapping, and shutdown Team:Core/Infra Meta label for core/infra team v8.14.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[CI] NodeShutdownShardsIT testShardStatusStaysCompleteAfterNodeLeavesIfRegisteredWhileNodeOffline failing
3 participants