-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
[ML] Remove model snapshot legacy doc ids #62434
[ML] Remove model snapshot legacy doc ids #62434
Conversation
No longer used.
Pinging @elastic/ml-core (:ml) |
We have never done anything to force users to delete jobs they created in 5.4, so I think documents with these IDs could still exist in the index if users still have old jobs left over from 5.4. Having said that, we don't let people open 5.4 jobs, so there isn't any need to keep the state. We could just unconditionally delete state documents for 5.4 jobs in our nightly maintenance. |
Just looking at this again, I see the method literally wasn't used. That means we've had a bug for a long time that if someone deletes a 5.4 job then we don't delete its state documents. So there will be users who have these orphaned 5.4 state documents in their state indices. We could clean up current and future cases by deleting all 5.4 state documents during the nightly maintenance. |
@elasticmachine update branch |
@elasticmachine update branch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Removes methods that were no longer used regarding version 5.4 doc ids of ModelState. Also adds clean up of 5.4 model state and quantile docs in the daily maintenance. Backport of elastic#62434
Removes methods that were no longer used regarding version 5.4 doc ids of
ModelState
.Also adds clean up of 5.4 model state and quantile docs in the daily maintenance.