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

Fix NPE & empty result handling in CountOnlyQueryPhaseResultConsumer #103203

Conversation

benwtrent
Copy link
Member

Query results can be "null" in that they are a null instance, containing no information from the shard.

Additionally, if we see no results, its an empty reduce phase.

This code was introduced into 8.12, which has yet to be released, but flagging as a bug for clarity.

@benwtrent benwtrent added >bug :Search/Search Search-related issues that do not fall into other categories auto-backport-and-merge v8.12.1 v8.13.0 labels Dec 8, 2023
@elasticsearchmachine elasticsearchmachine added the Team:Search Meta label for search team label Dec 8, 2023
@elasticsearchmachine
Copy link
Collaborator

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

@elasticsearchmachine
Copy link
Collaborator

Hi @benwtrent, I've created a changelog YAML for you.

@benwtrent
Copy link
Member Author

@elasticmachine update branch

@benwtrent benwtrent added the auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) label Dec 8, 2023
@elasticsearchmachine elasticsearchmachine merged commit bbbc58f into elastic:main Dec 8, 2023
15 checks passed
@benwtrent benwtrent deleted the fix/fix-count-only-optimization-consumer-bugs branch December 8, 2023 20:34
benwtrent added a commit to benwtrent/elasticsearch that referenced this pull request Dec 8, 2023
…lastic#103203)

Query results can be "null" in that they are a null instance, containing
no information from the shard. 

Additionally, if we see no results, its an empty reduce phase.

This code was introduced into 8.12, which has yet to be released, but
flagging as a bug for clarity.
@elasticsearchmachine
Copy link
Collaborator

💚 Backport successful

Status Branch Result
8.12

elasticsearchmachine pushed a commit that referenced this pull request Dec 8, 2023
…103203) (#103224)

Query results can be "null" in that they are a null instance, containing
no information from the shard. 

Additionally, if we see no results, its an empty reduce phase.

This code was introduced into 8.12, which has yet to be released, but
flagging as a bug for clarity.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) >bug :Search/Search Search-related issues that do not fall into other categories Team:Search Meta label for search team v8.12.1 v8.13.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants