Skip to content

[ML] Rename trained model metadata after full cluster upgrade#87806

Merged
dimitris-athanasiou merged 2 commits intoelastic:masterfrom
dimitris-athanasiou:remove-deprecated-trained-model-metadata-after-full-cluster-upgrade
Jun 17, 2022
Merged

[ML] Rename trained model metadata after full cluster upgrade#87806
dimitris-athanasiou merged 2 commits intoelastic:masterfrom
dimitris-athanasiou:remove-deprecated-trained-model-metadata-after-full-cluster-upgrade

Conversation

@dimitris-athanasiou
Copy link
Copy Markdown
Contributor

In #85503 we renamed trained model allocations to assignments.
However, it is important to wait for the full cluster to be
upgraded before we rewrite the cluster state so that there are
no undesired side-effects in a mixed cluster.

In elastic#85503 we renamed trained model allocations to assignments.
However, it is important to wait for the full cluster to be
upgraded before we rewrite the cluster state so that there are
no undesired side-effects in a mixed cluster.
@elasticmachine
Copy link
Copy Markdown
Collaborator

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

.removeCustom(TrainedModelAssignmentMetadata.DEPRECATED_NAME);
} else {
metadata.putCustom(TrainedModelAssignmentMetadata.DEPRECATED_NAME, modelAssignments.build())
.removeCustom(TrainedModelAssignmentMetadata.NAME);
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Is this removal necessary? Surely it's only needed if we've already released software that prematurely upgrades?

Copy link
Copy Markdown

@droberts195 droberts195 left a comment

Choose a reason for hiding this comment

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

LGTM

@dimitris-athanasiou dimitris-athanasiou merged commit 1f80ec1 into elastic:master Jun 17, 2022
dimitris-athanasiou added a commit to dimitris-athanasiou/elasticsearch that referenced this pull request Jun 17, 2022
…c#87806)

In elastic#85503 we renamed trained model allocations to assignments.
However, it is important to wait for the full cluster to be
upgraded before we rewrite the cluster state so that there are
no undesired side-effects in a mixed cluster.
@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

💚 Backport successful

Status Branch Result
8.3

elasticsearchmachine pushed a commit that referenced this pull request Jun 17, 2022
#87814)

In #85503 we renamed trained model allocations to assignments.
However, it is important to wait for the full cluster to be
upgraded before we rewrite the cluster state so that there are
no undesired side-effects in a mixed cluster.
dimitris-athanasiou added a commit to dimitris-athanasiou/elasticsearch that referenced this pull request Jun 18, 2022
dimitris-athanasiou added a commit that referenced this pull request Jun 18, 2022
dimitris-athanasiou added a commit to dimitris-athanasiou/elasticsearch that referenced this pull request Jun 18, 2022
elasticsearchmachine pushed a commit that referenced this pull request Jun 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:ml Machine learning >non-issue Team:ML Meta label for the ML team v8.3.0 v8.4.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants