-
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] Make ml internal indices hidden #52423
[ML] Make ml internal indices hidden #52423
Conversation
30b241c
to
a6cda62
Compare
Pinging @elastic/ml-core (:ml) |
I think line 941 of |
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.
Do we need to worry about things like the ExpiredForecastsRemover
?
It hits AnomalyDetectorsIndex.jobResultsIndexPrefix() + "*";
for its search but does not set the expansion flags to include hidden indices.
...in/core/src/main/resources/org/elasticsearch/xpack/core/ml/notifications_index_template.json
Outdated
Show resolved
Hide resolved
Done. |
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.
Do we need to worry about things like the ExpiredForecastsRemover?
It hits AnomalyDetectorsIndex.jobResultsIndexPrefix() + "*"; for its search but does not set the expansion flags to include hidden indices.
My understanding is that it will work correctly as it provides the pattern starting with a dot ('.'). The problem occurs when (like in MlDistributedFailureIT.java
) no index is provided.
...in/core/src/main/resources/org/elasticsearch/xpack/core/ml/notifications_index_template.json
Outdated
Show resolved
Hide resolved
My understanding is that wildcard patterns still match hidden indices providing the pattern begins with a dot - see the second bullet point in the description of #50452. So we should be OK. Once this PR is merged the whole team will need to be on the lookout for unforeseen side effects. It's good that we're not doing this close to feature freeze. |
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
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.
👍 cool, glad hidden are still expanded if their prefix if specified.
run elasticsearch-ci/2 |
run elasticsearch-ci/2 |
This PR makes the following indices hidden:
.ml-anomalies*
.ml-state*
.ml-notifications*
.ml-annotations*
Transform indices (
.transform-notifications-*
and deprecated.data-frame-notifications-*
) and inference index (.ml-inference-000001
) are not converted in this PR.Relates #52420