Skip to content

Always set total hits to null when track total hits is false #36285

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
wants to merge 4 commits into from

Conversation

jimczi
Copy link
Contributor

@jimczi jimczi commented Dec 5, 2018

This change ensures that shards don't set the total hits to an approximate value when the total number of hits is not tracked (track_total_hits is false). This is required to ensure that a node in 7 don't send an approximate total hits to a node in 6x. We have an assertion in the total hits serialization code that checks this and this caused some random failures during the bwc tests.

Closes #36284

@jimczi jimczi added >non-issue :Search/Search Search-related issues that do not fall into other categories v7.0.0 labels Dec 5, 2018
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-search

@jimczi
Copy link
Contributor Author

jimczi commented Dec 6, 2018

Superseded by #36290

@jimczi jimczi closed this Dec 6, 2018
@jimczi jimczi deleted the total_hits_gte branch December 6, 2018 00:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>non-issue :Search/Search Search-related issues that do not fall into other categories v7.0.0-beta1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants