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: adjust for recent deprecations #3710

Merged
merged 2 commits into from
Jan 25, 2024
Merged

Conversation

codefromthecrypt
Copy link
Member

one more adjustment to make all things clean

@@ -163,12 +163,14 @@ static void aggregateDependencies(ElasticsearchStorage storage, List<Span> spans
final AggregatedHttpResponse response =
webClient.execute(HttpRequest.of(RequestHeaders.of(HttpMethod.GET,
"/_migration/deprecations"))).aggregate().join();
if (!response.contentAscii().isEmpty()) {
Copy link
Member Author

Choose a reason for hiding this comment

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

as of recent times, the body would never be empty. This compares against the literal empty instead of using json parsing.

Copy link
Member Author

Choose a reason for hiding this comment

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

we didn't look at the log warning, and recently we couldn't have because logging was broken! #3709 fixes logging

Signed-off-by: Adrian Cole <[email protected]>
@codefromthecrypt codefromthecrypt merged commit 29044e2 into master Jan 25, 2024
12 checks passed
@codefromthecrypt codefromthecrypt deleted the es-deprecation branch January 25, 2024 00:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant