Skip to content

Cleanup ElasticsearchException a little #127713

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

Merged
merged 1 commit into from
May 6, 2025

Conversation

original-brownbear
Copy link
Member

Looked into this logic a bit since I suspect it of causing some OOMs potentially.
We should probably be using chunked writing for these in REST responses, but for now a couple smaller cleanups and savings in here. Maybe a sometimes serious win that protects us via avoiding a full + redundant copy in toString though :) and it rarely hurts moving away from the builder on modern Java.

Looked into this logic a bit since I suspect it of causing some OOMs potentially.
We should probably be using chunked writing for these in REST responses, but for now
a couple smaller cleanups and savings only.
@original-brownbear original-brownbear added >non-issue :Core/Infra/Core Core issues without another label labels May 5, 2025
@elasticsearchmachine
Copy link
Collaborator

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

@elasticsearchmachine elasticsearchmachine added Team:Core/Infra Meta label for core/infra team v9.1.0 labels May 5, 2025
Copy link
Member

@rjernst rjernst left a comment

Choose a reason for hiding this comment

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

LGTM

@original-brownbear
Copy link
Member Author

Thanks Ryan!

@original-brownbear original-brownbear merged commit d673339 into elastic:main May 6, 2025
17 checks passed
@original-brownbear original-brownbear deleted the cleanup-ex branch May 6, 2025 06:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Core/Infra/Core Core issues without another label >non-issue Team:Core/Infra Meta label for core/infra team v9.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants