File tree 3 files changed +6
-6
lines changed
x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml
3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -182,7 +182,7 @@ public JobParams(StreamInput in) throws IOException {
182
182
in .readBoolean ();
183
183
}
184
184
timeout = TimeValue .timeValueMillis (in .readVLong ());
185
- if (in .getVersion ().onOrAfter (Version .CURRENT )) {
185
+ if (in .getVersion ().onOrAfter (Version .V_6_6_0 )) {
186
186
job = in .readOptionalWriteable (Job ::new );
187
187
}
188
188
}
@@ -225,7 +225,7 @@ public void writeTo(StreamOutput out) throws IOException {
225
225
out .writeBoolean (true );
226
226
}
227
227
out .writeVLong (timeout .millis ());
228
- if (out .getVersion ().onOrAfter (Version .CURRENT )) {
228
+ if (out .getVersion ().onOrAfter (Version .V_6_6_0 )) {
229
229
out .writeOptionalWriteable (job );
230
230
}
231
231
}
Original file line number Diff line number Diff line change @@ -201,7 +201,7 @@ public DatafeedParams(StreamInput in) throws IOException {
201
201
startTime = in .readVLong ();
202
202
endTime = in .readOptionalLong ();
203
203
timeout = TimeValue .timeValueMillis (in .readVLong ());
204
- if (in .getVersion ().onOrAfter (Version .CURRENT )) {
204
+ if (in .getVersion ().onOrAfter (Version .V_6_6_0 )) {
205
205
jobId = in .readOptionalString ();
206
206
datafeedIndices = in .readList (StreamInput ::readString );
207
207
}
@@ -278,7 +278,7 @@ public void writeTo(StreamOutput out) throws IOException {
278
278
out .writeVLong (startTime );
279
279
out .writeOptionalLong (endTime );
280
280
out .writeVLong (timeout .millis ());
281
- if (out .getVersion ().onOrAfter (Version .CURRENT )) {
281
+ if (out .getVersion ().onOrAfter (Version .V_6_6_0 )) {
282
282
out .writeOptionalString (jobId );
283
283
out .writeStringList (datafeedIndices );
284
284
}
Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ public JobUpdate(StreamInput in) throws IOException {
141
141
} else {
142
142
jobVersion = null ;
143
143
}
144
- if (in .getVersion ().onOrAfter (Version .CURRENT )) {
144
+ if (in .getVersion ().onOrAfter (Version .V_6_6_0 )) {
145
145
clearJobFinishTime = in .readOptionalBoolean ();
146
146
} else {
147
147
clearJobFinishTime = null ;
@@ -183,7 +183,7 @@ public void writeTo(StreamOutput out) throws IOException {
183
183
out .writeBoolean (false );
184
184
}
185
185
}
186
- if (out .getVersion ().onOrAfter (Version .CURRENT )) {
186
+ if (out .getVersion ().onOrAfter (Version .V_6_6_0 )) {
187
187
out .writeOptionalBoolean (clearJobFinishTime );
188
188
}
189
189
}
You can’t perform that action at this time.
0 commit comments