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

Elasticsearch: Only try once per client instance to get cluster name #2743

Merged
merged 6 commits into from
Jul 11, 2024

Conversation

tannalynn
Copy link
Contributor

@tannalynn tannalynn commented Jul 10, 2024

Instead of trying every time the client makes a request, lets only try once per client. If the agent fails to get a cluster name the first time, we will simply use nil and not try again, since it would probably fail again in the same way.

resolves #2730

@tannalynn tannalynn marked this pull request as ready for review July 11, 2024 17:43
kaylareopelle
kaylareopelle previously approved these changes Jul 11, 2024
Copy link
Contributor

@kaylareopelle kaylareopelle left a comment

Choose a reason for hiding this comment

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

Two small changelog things, looks good otherwise!

CHANGELOG.md Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
Co-authored-by: Kayla Reopelle (she/her) <[email protected]>
Copy link
Contributor

SimpleCov Report

Coverage Threshold
Line 93.84% 93%
Branch 70.52% 50%

@tannalynn tannalynn merged commit 9f139ea into dev Jul 11, 2024
32 checks passed
@tannalynn tannalynn deleted the elasticsearch_try_cluster_once_per_instance branch November 1, 2024 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Failed to get cluster name for elasticsearch during health check routine
4 participants