Skip to content
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

[8.0] [ML] Need to tolerate .ml-config being an alias (#80025) #80036

Merged
merged 1 commit into from
Oct 28, 2021

Conversation

droberts195
Copy link
Contributor

Backports the following commits to 8.0:

The .ml-config index was introduced in 6.x, and hence may
be reindexed by the system index upgrade code in 7.16.
This in turn means that all our use of the name .ml-config
must tolerate it either being a concrete index or an alias
to some other index that's been created as a replacement
for the original 6.x index.

We were mostly compliant with this need. The only place
where we weren't was in the code for config migration from
cluster state. It's likely that any cluster running 7.16
would already have had configs migrated out of cluster
state. The only way this couldn't be the case is if the
cluster was upgraded from 6.x to 7.16 in a full cluster
restart. Any rolling upgrade would have had to go via
6.8 where config migration could have taken place. But
still, it's best that the patterns in the code reflect
best practice for the future, as .ml-config will need to
be reindexed again as the years go by.
@droberts195 droberts195 added auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport labels Oct 28, 2021
@elasticsearchmachine elasticsearchmachine merged commit f8aec2e into elastic:8.0 Oct 28, 2021
@droberts195 droberts195 deleted the backport/8.0/pr-80025 branch October 28, 2021 19:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport v8.0.0-beta1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants