Skip to content

[ML] Check total_definition_length is consistent on start deployment #80553

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

Merged
merged 5 commits into from
Nov 10, 2021

Conversation

davidkyle
Copy link
Member

Before a model deployment is started check the the individual model part documents have a consistent value for total_definition_length.

This is an unrecoverable error as it shows the model definition sizes are not reliable, the only solution is to delete the model and recreate it and the error message should express this to the user.

@davidkyle davidkyle requested a review from benwtrent November 9, 2021 17:09
@elasticmachine elasticmachine added the Team:ML Meta label for the ML team label Nov 9, 2021
@elasticmachine
Copy link
Collaborator

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

@davidkyle
Copy link
Member Author

I did some further testing of the native process streaming a model that differed in length to the reported size. In all cases the process detected the irregularity and exited after a logging a message.

@davidkyle davidkyle merged commit f3f26d7 into elastic:master Nov 10, 2021
davidkyle added a commit to davidkyle/elasticsearch that referenced this pull request Nov 10, 2021
…lastic#80553)

Before a model deployment is started check the the individual model part
documents have a consistent value for total_definition_length. Any 
inconsistency is an unrecoverable error.
@elasticsearchmachine
Copy link
Collaborator

💚 Backport successful

Status Branch Result
8.0

@davidkyle davidkyle deleted the check-total-length branch November 10, 2021 08:34
elasticsearchmachine pushed a commit that referenced this pull request Nov 10, 2021
…80553) (#80577)

Before a model deployment is started check the the individual model part
documents have a consistent value for total_definition_length. Any 
inconsistency is an unrecoverable error.
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.0.0-rc2 v8.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants