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.x] [ML] clear job size estimate cache when feature is reset (#74494) #74560

Merged
merged 2 commits into from
Jun 24, 2021

Conversation

benwtrent
Copy link
Member

Backports the following commits to 7.x:

Since the feature reset API clears out the `.ml-*` indices, it follows that it also deletes the machine learning jobs. 

But, since the regular path of calling the delete job API is not followed, jobs that no longer exist could still have memory estimates cached on the master node. These would never get cleared out until after a master node changed. 

This commit causes feature reset to: 
 - await for all refresh requests to finish (of which there should usually be NONE as all assignments have been cancelled)
 - clear out the cached hashmap of memory estimates sitting on the master node
 - Then once cleared, new refreshes are allowed again
@benwtrent benwtrent added :ml Machine learning backport labels Jun 24, 2021
@elasticmachine elasticmachine added the Team:ML Meta label for the ML team label Jun 24, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/ml-core (Team:ML)

@benwtrent
Copy link
Member Author

run elasticsearch-ci/2

@benwtrent
Copy link
Member Author

@elasticmachine update branch

@benwtrent benwtrent merged commit c59f666 into elastic:7.x Jun 24, 2021
@benwtrent benwtrent deleted the backport/7.x/pr-74494 branch June 24, 2021 19:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport :ml Machine learning Team:ML Meta label for the ML team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants