-
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] Incorrect mappings on .ml-config index after upgrading to 7.9.0 #61157
Comments
Pinging @elastic/ml-core (:ml) |
One way to insure against suffering this problem at all is to manually adjust the mappings that are required in 7.9.0 before upgrading to 7.9.0 (it doesn't hurt to apply them to an earlier version):
You'll need to be a However, even this may fail, as the underlying problem has existed for a long time. When upgrading to 7.8 it's possible that dynamic mappings were created that weren't catastrophically bad, but weren't what's in the ML template. After that it will be impossible to ever apply the mappings from the ML template. The only solution is reindexing, which I will describe in the next comment. |
If you end up with a
You'll need to be a |
Here are the matching commands that can be executed in dev console:
|
The workarounds for 7.9.0 are now publicly documented in https://www.elastic.co/guide/en/machine-learning/7.9/ml-troubleshooting.html#ml-troubleshooting-mappings and anyone who skips 7.9.0 and upgrades to 7.9.1 or above should not suffer the issue due to #61064. |
The ML mappings upgrade test had become useless as it was checking a field that has been the same since 6.5. This commit switches to a field that was changed in 7.9. Additionally, the test only used to check the results index mappings. This commit also adds checking for the config index. Relates elastic#61157
The ML mappings upgrade test had become useless as it was checking a field that has been the same since 6.5. This commit switches to a field that was changed in 7.9. Additionally, the test only used to check the results index mappings. This commit also adds checking for the config index. Relates #61157
After upgrading to 7.9.0 it is possible for the
.ml-config
index to end up with incorrect mappings. This is the exception that is seen when this happens:In the UI it looks like this:
The mappings are supposed to be upgraded automatically when the cluster is upgraded, but there is a loophole that means this doesn't always happen.
The second scenario can also happen programmatically, because when a job persists model state this causes an update to set the model snapshot ID on the job config.
So basically if you upgrade your cluster with ML jobs running and leave them running for 3-4 hours after upgrade then the
.ml-config
index mappings get upgraded as required.The text was updated successfully, but these errors were encountered: