Skip to content

Remove redundant consumeAll call on in QueryPhaseResultConsumer #125299

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

Closed

Conversation

original-brownbear
Copy link
Contributor

This is redundant, no need to call this for a null response which has none of the fields that consumeAll nulls out set in the first place.

It's in the title, no need to call this for a null response.
@elasticsearchmachine elasticsearchmachine added the Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch label Mar 20, 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.

Reading the result.consumeAll code this update LGTM.

@original-brownbear
Copy link
Contributor Author

Thanks Dimistris! This one I already integrated into #121885 by accident, sorry :) Nothing to merge left :)

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants