Skip to content

Conversation

davidkyle
Copy link
Member

@davidkyle davidkyle commented Sep 23, 2025

Anomaly detection results indices created in a version 6 Elasticsearch get reindexed and renamed with the prefix .reindexed-v7 in version 7 by the upgrade assistant. In 8.18 and 8.19, those version 7 indices are rolled over in preparation for the version 9 upgrade, unfortunately because the index name starts with .reindexed-v7- they do not pick up the ml results index mappings from the template. If the correct mappings are not used it can break anomaly detection.

This PR fixes that by adding .reindexed-v7-ml-anomalies-* to the template index patterns

@elasticsearchmachine elasticsearchmachine added the Team:ML Meta label for the ML team label Sep 23, 2025
@elasticsearchmachine
Copy link
Collaborator

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

@elasticsearchmachine
Copy link
Collaborator

Hi @davidkyle, I've created a changelog YAML for you.

Copy link
Contributor

@valeriy42 valeriy42 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@davidkyle davidkyle added v9.0.8 v9.2.0 v9.1.5 auto-backport Automatically create backport pull requests when merged labels Sep 23, 2025
@davidkyle davidkyle merged commit 4fc9fa2 into elastic:8.19 Sep 23, 2025
23 checks passed
davidkyle added a commit to davidkyle/elasticsearch that referenced this pull request Sep 23, 2025
…ex pattern (elastic#135270)

Anomaly detection results indices created in a version 6 Elasticsearch
are reindexed and renamed with the ".reindexed-v7" prefix in version 7. 
In 8.18 and 8.19, those version 7 indices are rolled over in preparation 
for the version 9 upgrade. ".reindexed-v7-ml-anomalies-*" is
added to the AD results index template index patterns so when those
indices are rolled over the pick up the correct mappings
@elasticsearchmachine
Copy link
Collaborator

💚 Backport successful

Status Branch Result
main
9.1
8.18
9.0

davidkyle added a commit to davidkyle/elasticsearch that referenced this pull request Sep 23, 2025
…ex pattern (elastic#135270)

Anomaly detection results indices created in a version 6 Elasticsearch
are reindexed and renamed with the ".reindexed-v7" prefix in version 7. 
In 8.18 and 8.19, those version 7 indices are rolled over in preparation 
for the version 9 upgrade. ".reindexed-v7-ml-anomalies-*" is
added to the AD results index template index patterns so when those
indices are rolled over the pick up the correct mappings
davidkyle added a commit to davidkyle/elasticsearch that referenced this pull request Sep 23, 2025
…ex pattern (elastic#135270)

Anomaly detection results indices created in a version 6 Elasticsearch
are reindexed and renamed with the ".reindexed-v7" prefix in version 7. 
In 8.18 and 8.19, those version 7 indices are rolled over in preparation 
for the version 9 upgrade. ".reindexed-v7-ml-anomalies-*" is
added to the AD results index template index patterns so when those
indices are rolled over the pick up the correct mappings
davidkyle added a commit to davidkyle/elasticsearch that referenced this pull request Sep 23, 2025
…ex pattern (elastic#135270)

Anomaly detection results indices created in a version 6 Elasticsearch
are reindexed and renamed with the ".reindexed-v7" prefix in version 7. 
In 8.18 and 8.19, those version 7 indices are rolled over in preparation 
for the version 9 upgrade. ".reindexed-v7-ml-anomalies-*" is
added to the AD results index template index patterns so when those
indices are rolled over the pick up the correct mappings
elasticsearchmachine pushed a commit that referenced this pull request Sep 23, 2025
…ex pattern (#135270) (#135287)

Anomaly detection results indices created in a version 6 Elasticsearch
are reindexed and renamed with the ".reindexed-v7" prefix in version 7. 
In 8.18 and 8.19, those version 7 indices are rolled over in preparation 
for the version 9 upgrade. ".reindexed-v7-ml-anomalies-*" is
added to the AD results index template index patterns so when those
indices are rolled over the pick up the correct mappings
elasticsearchmachine pushed a commit that referenced this pull request Sep 23, 2025
…ex pattern (#135270) (#135289)

Anomaly detection results indices created in a version 6 Elasticsearch
are reindexed and renamed with the ".reindexed-v7" prefix in version 7. 
In 8.18 and 8.19, those version 7 indices are rolled over in preparation 
for the version 9 upgrade. ".reindexed-v7-ml-anomalies-*" is
added to the AD results index template index patterns so when those
indices are rolled over the pick up the correct mappings
elasticsearchmachine pushed a commit that referenced this pull request Sep 23, 2025
…ex pattern (#135270) (#135288)

Anomaly detection results indices created in a version 6 Elasticsearch
are reindexed and renamed with the ".reindexed-v7" prefix in version 7. 
In 8.18 and 8.19, those version 7 indices are rolled over in preparation 
for the version 9 upgrade. ".reindexed-v7-ml-anomalies-*" is
added to the AD results index template index patterns so when those
indices are rolled over the pick up the correct mappings
elasticsearchmachine pushed a commit that referenced this pull request Sep 24, 2025
…ex pattern (#135270) (#135286)

Anomaly detection results indices created in a version 6 Elasticsearch
are reindexed and renamed with the ".reindexed-v7" prefix in version 7. 
In 8.18 and 8.19, those version 7 indices are rolled over in preparation 
for the version 9 upgrade. ".reindexed-v7-ml-anomalies-*" is
added to the AD results index template index patterns so when those
indices are rolled over the pick up the correct mappings
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Automatically create backport pull requests when merged >bug :ml Machine learning Team:ML Meta label for the ML team v8.18.8 v8.19.5 v9.0.8 v9.1.5 v9.2.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants