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

[7.17] [ML] Do not fetch source when finding index of last state docs (#85334) #85343

Merged
merged 2 commits into from
Mar 24, 2022

Conversation

droberts195
Copy link
Contributor

Backports the following commits to 7.17:

…ic#85334)

There are two places where the ML code needs to find out which
index in the rolling sequence of state indices the previous
state document is in.

Previously the search to do this was needlessly retrieving
_source, which wastes memory.

The change tells the two searches not to fetch _source, only
the metadata.
@droberts195 droberts195 added auto-merge Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport labels Mar 24, 2022
@droberts195
Copy link
Contributor Author

@elasticmachine update branch

@elasticsearchmachine elasticsearchmachine merged commit 2c174a1 into elastic:7.17 Mar 24, 2022
@droberts195 droberts195 deleted the backport/7.17/pr-85334 branch March 24, 2022 22:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-merge Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants