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

[ML] Use correct writable name for model assignment metadata in mixed cluster #100886

Merged
merged 4 commits into from
Oct 16, 2023

Conversation

davidkyle
Copy link
Member

TrainedModelAssignmentMetadata was introduced in version 8.3, in a mixed cluster there are many checks to ensure that the new named writable is not used before the cluster is fully upgraded. However, there is one case where the detail about whether to use the old or new named writable is forgotten and the new one used by default. As older nodes cannot read the new writable this can cause a node failure during a rolling upgrade with the error

java.lang.Exception: java.lang.AssertionError: java.lang.IllegalArgumentException: Unknown NamedWriteable [org.elasticsearch.cluster.metadata.Metadata$Custom][trained_model_assignment]

For #100371

@elasticsearchmachine
Copy link
Collaborator

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

@elasticsearchmachine elasticsearchmachine added the Team:ML Meta label for the ML team label Oct 16, 2023
@elasticsearchmachine
Copy link
Collaborator

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

Copy link
Contributor

@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

@davidkyle davidkyle changed the title [ML] Always use correct writable name for TrainedModelAssignmentMetadata [ML] Use correct writable name for model assignment metadata in mixed cluster Oct 16, 2023
docs/changelog/100886.yaml Outdated Show resolved Hide resolved
docs/changelog/100886.yaml Outdated Show resolved Hide resolved
@elasticsearchmachine
Copy link
Collaborator

💚 Backport successful

Status Branch Result
8.11

davidkyle added a commit to davidkyle/elasticsearch that referenced this pull request Oct 16, 2023
… cluster (elastic#100886)

Older nodes will fail if they do not recognise the named writable
elasticsearchmachine pushed a commit that referenced this pull request Oct 16, 2023
… cluster (#100886) (#100898)

Older nodes will fail if they do not recognise the named writable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug :ml Machine learning Team:ML Meta label for the ML team v8.11.0 v8.12.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants