File tree 2 files changed +4
-8
lines changed
x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/datafeed
2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -223,8 +223,7 @@ public DatafeedConfig(StreamInput in) throws IOException {
223
223
this .chunkingConfig = in .readOptionalWriteable (ChunkingConfig ::new );
224
224
this .headers = Collections .unmodifiableMap (in .readMap (StreamInput ::readString , StreamInput ::readString ));
225
225
delayedDataCheckConfig = in .readOptionalWriteable (DelayedDataCheckConfig ::new );
226
- // TODO: change version in backport
227
- if (in .getVersion ().onOrAfter (Version .V_8_0_0 )) {
226
+ if (in .getVersion ().onOrAfter (Version .V_7_5_0 )) {
228
227
maxEmptySearches = in .readOptionalVInt ();
229
228
} else {
230
229
maxEmptySearches = null ;
@@ -429,8 +428,7 @@ public void writeTo(StreamOutput out) throws IOException {
429
428
out .writeOptionalWriteable (chunkingConfig );
430
429
out .writeMap (headers , StreamOutput ::writeString , StreamOutput ::writeString );
431
430
out .writeOptionalWriteable (delayedDataCheckConfig );
432
- // TODO: change version in backport
433
- if (out .getVersion ().onOrAfter (Version .V_8_0_0 )) {
431
+ if (out .getVersion ().onOrAfter (Version .V_7_5_0 )) {
434
432
out .writeOptionalVInt (maxEmptySearches );
435
433
}
436
434
}
Original file line number Diff line number Diff line change @@ -144,8 +144,7 @@ public DatafeedUpdate(StreamInput in) throws IOException {
144
144
this .scrollSize = in .readOptionalVInt ();
145
145
this .chunkingConfig = in .readOptionalWriteable (ChunkingConfig ::new );
146
146
delayedDataCheckConfig = in .readOptionalWriteable (DelayedDataCheckConfig ::new );
147
- // TODO: change version in backport
148
- if (in .getVersion ().onOrAfter (Version .V_8_0_0 )) {
147
+ if (in .getVersion ().onOrAfter (Version .V_7_5_0 )) {
149
148
maxEmptySearches = in .readOptionalInt ();
150
149
} else {
151
150
maxEmptySearches = null ;
@@ -193,8 +192,7 @@ public void writeTo(StreamOutput out) throws IOException {
193
192
out .writeOptionalVInt (scrollSize );
194
193
out .writeOptionalWriteable (chunkingConfig );
195
194
out .writeOptionalWriteable (delayedDataCheckConfig );
196
- // TODO: change version in backport
197
- if (out .getVersion ().onOrAfter (Version .V_8_0_0 )) {
195
+ if (out .getVersion ().onOrAfter (Version .V_7_5_0 )) {
198
196
out .writeOptionalInt (maxEmptySearches );
199
197
}
200
198
}
You can’t perform that action at this time.
0 commit comments