Skip to content

Cleanup needlessly holding Exceptions in the can_match phase #127495

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

original-brownbear
Copy link
Member

Exceptions can be quite expensive heap-wise and we don't use them here any longer, not even for logging -> replace atomic array with a set of shard indices and dry up the logic a tiny bit as a result as well.
We could also adjust the response class to not even have the exception but with #127471 inbound, the actual transport responses will shortly turn into a BwC only thing anyway.

Exceptions can be quite expensive heap-wise and we don't use them here any longer,
not even for logging -> replace atomic array with a set of shard indices and
dry up the logic a tiny bit as a result as well.
@original-brownbear original-brownbear added >non-issue :Search Foundations/Search Catch all for Search Foundations labels Apr 29, 2025
@elasticsearchmachine elasticsearchmachine added Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch v9.1.0 labels Apr 29, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-search-foundations (Team:Search Foundations)

Copy link
Contributor

@drempapis drempapis left a comment

Choose a reason for hiding this comment

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

LGTM! The code looks cleaner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>non-issue :Search Foundations/Search Catch all for Search Foundations Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch v9.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants