-
Notifications
You must be signed in to change notification settings - Fork 25.3k
[ML] fixing bwc for trained model deployment inference #88289
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] fixing bwc for trained model deployment inference #88289
Conversation
Pinging @elastic/ml-core (Team:ML) |
return Version.V_8_3_0; | ||
return Version.V_8_0_0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This prevents the object from being serialized to older nodes. Since we don't update the object metadata custom name until all nodes are upgraded now, it is OK to serialize to older nodes.
assertInfer(modelId); | ||
assertInfer(modelId); | ||
// attempt inference on new and old nodes multiple times | ||
for (int i = 0; i < 100; i++) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want to keep the 100 inferences here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dimitris-athanasiou we do not, I will reduce it to 10.
...qa/rolling-upgrade/src/test/java/org/elasticsearch/upgrades/MLModelDeploymentsUpgradeIT.java
Outdated
Show resolved
Hide resolved
…ades/MLModelDeploymentsUpgradeIT.java
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM Should we backport this to 8.3 branch too?
Did we backport the "don't rename until all nodes are upgraded" change to 8.3? |
Yes, in #87822. |
@elasticmachine update branch |
💚 Backport successful
|
When the internal objects were renamed, an inappropriate bwc version restriction was put in place. This commit fixes this by allowing trained model assignment metadata updates to be serialized to nodes > 8.0.0. This is OK as the object serialization handles its BWC conditions when serializing over the wire. This closes: elastic#87959
When the internal objects were renamed, an inappropriate bwc version restriction was put in place. This commit fixes this by allowing trained model assignment metadata updates to be serialized to nodes > 8.0.0. This is OK as the object serialization handles its BWC conditions when serializing over the wire. This closes: #87959
When the internal objects were renamed, an inappropriate bwc version restriction was put in place.
This commit fixes this by allowing trained model assignment metadata updates to be serialized to nodes > 8.0.0.
This is OK as the object serialization handles its BWC conditions when serializing over the wire.
This closes: #87959