Skip to content

Commit ab2c2ba

Browse files
authored
[ML][Inference] fix bwc serialization pr #51330 (#51405)
1 parent 80cacc6 commit ab2c2ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public Request(String id, boolean includeModelDefinition, List<String> tags) {
4949
public Request(StreamInput in) throws IOException {
5050
super(in);
5151
this.includeModelDefinition = in.readBoolean();
52-
if (in.getVersion().onOrAfter(Version.V_8_0_0)) {
52+
if (in.getVersion().onOrAfter(Version.V_7_7_0)) {
5353
this.tags = in.readStringList();
5454
} else {
5555
this.tags = Collections.emptyList();
@@ -73,7 +73,7 @@ public List<String> getTags() {
7373
public void writeTo(StreamOutput out) throws IOException {
7474
super.writeTo(out);
7575
out.writeBoolean(includeModelDefinition);
76-
if (out.getVersion().onOrAfter(Version.V_8_0_0)) {
76+
if (out.getVersion().onOrAfter(Version.V_7_7_0)) {
7777
out.writeStringCollection(tags);
7878
}
7979
}

0 commit comments

Comments
 (0)