-
Notifications
You must be signed in to change notification settings - Fork 25.3k
[ML] Support 8.19 + 9.1 clusters for all new inference providers #130033
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
Conversation
Overriding version support to include the 8.19 patch version.
Pinging @elastic/ml-core (Team:ML) |
@@ -118,6 +118,12 @@ public TransportVersion getMinimalSupportedVersion() { | |||
return TransportVersions.ML_INFERENCE_HUGGING_FACE_RERANK_ADDED; | |||
} | |||
|
|||
@Override | |||
public boolean supportsVersion(TransportVersion version) { | |||
return ServiceSettings.super.supportsVersion(version) |
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.
I think it'd be more clear to do version.onOrAfter(ML_INFERENCE_HUGGING_FACE_RERANK_ADDED) || version.isPatchFrom(ML_INFERENCE_HUGGING_FACE_RERANK_ADDED_8_19)
. Something like that.
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.
It's the same thing - but it's easier to scan it and make sure it's the same thing.
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
@@ -82,6 +82,12 @@ public TransportVersion getMinimalSupportedVersion() { | |||
return TransportVersions.AMAZON_BEDROCK_TASK_SETTINGS; |
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.
Optional/nitpick: I would change this to
throw Exception("should never be called when supportsVersion is used")
or so (see other classes).
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.
spoke offline - i agree with this but i'm scared to change to exceptions in case there is something in prod using this, so to keep 9.1+ clusters alive and fail in non-prod, we added assertions
💔 Backport failedThe backport operation could not be completed due to the following error:
You can use sqren/backport to manually backport by running |
…stic#130033) Overriding version support to include the 8.19 patch version.
…stic#130033) Overriding version support to include the 8.19 patch version.
Overriding version support to include the 8.19 patch version.