File tree Expand file tree Collapse file tree 3 files changed +4
-6
lines changed
main/java/org/elasticsearch/persistent
test/java/org/elasticsearch/cluster Expand file tree Collapse file tree 3 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -313,7 +313,7 @@ public PersistentTask(StreamInput in) throws IOException {
313313 id = in .readString ();
314314 allocationId = in .readLong ();
315315 taskName = in .readString ();
316- if (in .getVersion ().onOrAfter (Version .V_7_0_0_alpha1 )) {
316+ if (in .getVersion ().onOrAfter (Version .V_6_4_0 )) {
317317 params = (P ) in .readNamedWriteable (PersistentTaskParams .class );
318318 } else {
319319 params = (P ) in .readOptionalNamedWriteable (PersistentTaskParams .class );
@@ -328,7 +328,7 @@ public void writeTo(StreamOutput out) throws IOException {
328328 out .writeString (id );
329329 out .writeLong (allocationId );
330330 out .writeString (taskName );
331- if (out .getVersion ().onOrAfter (Version .V_7_0_0_alpha1 )) {
331+ if (out .getVersion ().onOrAfter (Version .V_6_4_0 )) {
332332 out .writeNamedWriteable (params );
333333 } else {
334334 out .writeOptionalNamedWriteable (params );
Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ public void readFrom(StreamInput in) throws IOException {
8686 super .readFrom (in );
8787 taskId = in .readString ();
8888 taskName = in .readString ();
89- if (in .getVersion ().onOrAfter (Version .V_7_0_0_alpha1 )) {
89+ if (in .getVersion ().onOrAfter (Version .V_6_4_0 )) {
9090 params = in .readNamedWriteable (PersistentTaskParams .class );
9191 } else {
9292 params = in .readOptionalNamedWriteable (PersistentTaskParams .class );
@@ -98,7 +98,7 @@ public void writeTo(StreamOutput out) throws IOException {
9898 super .writeTo (out );
9999 out .writeString (taskId );
100100 out .writeString (taskName );
101- if (out .getVersion ().onOrAfter (Version .V_7_0_0_alpha1 )) {
101+ if (out .getVersion ().onOrAfter (Version .V_6_4_0 )) {
102102 out .writeNamedWriteable (params );
103103 } else {
104104 out .writeOptionalNamedWriteable (params );
Original file line number Diff line number Diff line change 3333import org .elasticsearch .common .io .stream .StreamInput ;
3434import org .elasticsearch .common .io .stream .StreamOutput ;
3535import org .elasticsearch .common .io .stream .Writeable ;
36- import org .elasticsearch .common .settings .Settings ;
3736import org .elasticsearch .common .xcontent .NamedXContentRegistry ;
3837import org .elasticsearch .common .xcontent .XContentBuilder ;
3938import org .elasticsearch .common .xcontent .XContentParser ;
4342import org .elasticsearch .script .ScriptService ;
4443import org .elasticsearch .test .ESIntegTestCase ;
4544import org .elasticsearch .threadpool .ThreadPool ;
46- import org .elasticsearch .transport .TcpTransport ;
4745import org .elasticsearch .watcher .ResourceWatcherService ;
4846
4947import java .io .IOException ;
You can’t perform that action at this time.
0 commit comments