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

Always create search context for scroll queries #52078

Merged
merged 1 commit into from
Feb 8, 2020

Conversation

dnhatn
Copy link
Member

@dnhatn dnhatn commented Feb 7, 2020

We need to either exclude null responses from the scroll search response or always create a search context for every target shards, although that scroll query can be written to match_no_docs. Otherwise, we won't find search_context for subsequent scroll requests.

This commit implements the latter option as it's less error-prone.

I labelled this non-issue for an unreleased bug.

Relates #51708

@dnhatn dnhatn added >non-issue :Search/Search Search-related issues that do not fall into other categories v8.0.0 v7.7.0 labels Feb 7, 2020
@dnhatn dnhatn requested a review from jpountz February 7, 2020 20:01
@elasticmachine
Copy link
Collaborator

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

@dnhatn
Copy link
Member Author

dnhatn commented Feb 8, 2020

Thanks Adrien.

@dnhatn dnhatn merged commit 9b456cf into elastic:master Feb 8, 2020
@dnhatn dnhatn deleted the scroll-match-no-docs branch February 8, 2020 16:26
dnhatn added a commit that referenced this pull request Feb 8, 2020
We need to either exclude null responses from the scroll search response
or always create a search context for every target shards, although that
scroll query can be written to match_no_docs. Otherwise, we won't find
search_context for subsequent scroll requests.

This commit implements the latter option as it's less error-prone.

Relates #51708
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.7.0 v8.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants