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

Fallback on scroll for Elasticsearch <7.12 #376

Merged
merged 1 commit into from Aug 8, 2021

Conversation

sethmlarson
Copy link
Contributor

Follow-up from #370, basically PIT+search_after became universally safe in Elasticsearch 7.12 by adding an automatic sort tiebreaker field when using PITs called _shard_doc but now we need to do feature detection to make sure we use the previous scroll method on Elasticsearch <7.12 clusters.

Our new scroll method is actually better than the old one as it cleans up partially consumed scroll contexts immediately after returning instead of just allowing them to self-close over time.

@sethmlarson sethmlarson merged commit 15ba8d3 into elastic:master Aug 8, 2021
@sethmlarson sethmlarson deleted the fallback-on-scroll branch August 8, 2021 17:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant