Skip to content

Commit a04d023

Browse files
authored
[ML] Adjust serialisation of inference requests for BWC (#92157)
Adjust serialisation for BWC
1 parent e130617 commit a04d023

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,9 @@ tasks.register("verifyVersions") {
137137
* after the backport of the backcompat code is complete.
138138
*/
139139

140-
boolean bwc_tests_enabled = false
140+
boolean bwc_tests_enabled = true
141141
// place a PR link here when committing bwc changes:
142-
String bwc_tests_disabled_issue = "https://github.com/elastic/elasticsearch/issues/92153"
142+
String bwc_tests_disabled_issue = ""
143143
if (bwc_tests_enabled == false) {
144144
if (bwc_tests_disabled_issue.isEmpty()) {
145145
throw new GradleException("bwc_tests_disabled_issue must be set when bwc_tests_enabled == false")

x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/action/InferTrainedModelDeploymentAction.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ public Request(StreamInput in) throws IOException {
138138
if (in.getVersion().onOrAfter(Version.V_8_3_0)) {
139139
skipQueue = in.readBoolean();
140140
}
141-
if (in.getVersion().onOrAfter(Version.V_8_6_0)) {
141+
if (in.getVersion().onOrAfter(Version.V_8_7_0)) {
142142
textInput = in.readOptionalString();
143143
} else {
144144
textInput = null;
@@ -214,7 +214,7 @@ public void writeTo(StreamOutput out) throws IOException {
214214
if (out.getVersion().onOrAfter(Version.V_8_3_0)) {
215215
out.writeBoolean(skipQueue);
216216
}
217-
if (out.getVersion().onOrAfter(Version.V_8_6_0)) {
217+
if (out.getVersion().onOrAfter(Version.V_8_7_0)) {
218218
out.writeOptionalString(textInput);
219219
}
220220
}

0 commit comments

Comments
 (0)