-
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] Prevent job creation/opening if .ml indices cannot be created #34430
Comments
Pinging @elastic/ml-core |
The other option here is that we switch to a strategy of creating our indices without relying on the auto-create mechanism at all. Security does this: Line 260 in 305b584
However, there is only ever one active security index, whereas ML has several, and in future we'll want to use rollover. Rollover works best with the standard auto-create mechanism, so that points to us continuing to use auto-create. |
Don't we win this for free once we need to store the job config in an index? |
I don't think it's completely free. For the support case that caused this issue to be raised some |
The The chain of events that led to the failure is
This is important to consider for the config migration change #32905. If the config cannot be written to |
closing as out of date |
In https://www.elastic.co/guide/en/elasticsearch/reference/current/zip-targz.html#zip-targz-enable-indices we document that auto-creation must be permitted for
.ml*
indices even if auto-creation of indices is disabled in general. Unfortunately, if a user does not follow the guidance then the resulting failure is very hard to diagnose.We should explicitly check that auto-creation of
.ml*
indices is permitted at a few key points where we have the ability to fail early and report a clear error message. If we wait until results and/or state cannot be written then we cannot report the problem in a REST response.The text was updated successfully, but these errors were encountered: