Skip to content

Reduce assertBusy usage in testMultipleNodes #126582

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

Conversation

DaveCTurner
Copy link
Contributor

Relates #126501

@DaveCTurner DaveCTurner added >test Issues or PRs that are addressing/adding tests v9.1.0 :Distributed Coordination/Distributed A catch all label for anything in the Distributed Coordination area. Please avoid if you can. labels Apr 10, 2025
@DaveCTurner DaveCTurner requested a review from ywangd April 10, 2025 07:08
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-distributed-coordination (Team:Distributed Coordination)

@elasticsearchmachine elasticsearchmachine added the Team:Distributed Coordination Meta label for Distributed Coordination team label Apr 10, 2025
Copy link
Member

@ywangd ywangd left a comment

Choose a reason for hiding this comment

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

LGTM thanks for fixing it up.

@@ -124,10 +124,6 @@ protected void deleteMonitoringIndices() {
assertAcked(client().admin().indices().prepareDelete(ALL_MONITORING_INDICES));
}

protected void ensureMonitoringIndicesYellow() {
ensureYellowAndNoInitializingShards(".monitoring-es-*");
Copy link
Member

Choose a reason for hiding this comment

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

ALL_MONITORING_INDICES is "monitoring-* and this is .monitoring-es-*. I doubt the difference would actual matter. But probably still better to be safe and use .monitoring-es-* in awaitClusterState?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah well spotted :) Yeah it doesn't matter I think, we're only monitoring ES itself in this test, but I fixed that up.

@DaveCTurner DaveCTurner added the auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) label Apr 10, 2025
@elasticsearchmachine elasticsearchmachine merged commit 9e0d885 into elastic:main Apr 10, 2025
17 checks passed
@DaveCTurner DaveCTurner deleted the 2025/04/10/testMultipleNodes-less-assertBusy branch April 10, 2025 08:28
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!) :Distributed Coordination/Distributed A catch all label for anything in the Distributed Coordination area. Please avoid if you can. Team:Distributed Coordination Meta label for Distributed Coordination team >test Issues or PRs that are addressing/adding tests v9.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants