Skip to content

Commit 78acf98

Browse files
authored
[ML] Adjusting bwc serialization version to 7.6.0 (#48960)
1 parent 0a93cc8 commit 78acf98

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/job/results/AnomalyCause.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ public AnomalyCause(StreamInput in) throws IOException {
121121
if (in.readBoolean()) {
122122
influencers = in.readList(Influence::new);
123123
}
124-
if (in.getVersion().onOrAfter(Version.V_8_0_0)) {
124+
if (in.getVersion().onOrAfter(Version.V_7_6_0)) {
125125
geoResults = in.readOptionalWriteable(GeoResults::new);
126126
}
127127
}
@@ -154,7 +154,7 @@ public void writeTo(StreamOutput out) throws IOException {
154154
if (hasInfluencers) {
155155
out.writeList(influencers);
156156
}
157-
if (out.getVersion().onOrAfter(Version.V_8_0_0)) {
157+
if (out.getVersion().onOrAfter(Version.V_7_6_0)) {
158158
out.writeOptionalWriteable(geoResults);
159159
}
160160
}

x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/job/results/AnomalyRecord.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ public AnomalyRecord(StreamInput in) throws IOException {
193193
if (in.readBoolean()) {
194194
influences = in.readList(Influence::new);
195195
}
196-
if (in.getVersion().onOrAfter(Version.V_8_0_0)) {
196+
if (in.getVersion().onOrAfter(Version.V_7_6_0)) {
197197
geoResults = in.readOptionalWriteable(GeoResults::new);
198198
}
199199
}
@@ -239,7 +239,7 @@ public void writeTo(StreamOutput out) throws IOException {
239239
if (hasInfluencers) {
240240
out.writeList(influences);
241241
}
242-
if (out.getVersion().onOrAfter(Version.V_8_0_0)) {
242+
if (out.getVersion().onOrAfter(Version.V_7_6_0)) {
243243
out.writeOptionalWriteable(geoResults);
244244
}
245245
}

0 commit comments

Comments
 (0)