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 {
313
313
id = in .readString ();
314
314
allocationId = in .readLong ();
315
315
taskName = in .readString ();
316
- if (in .getVersion ().onOrAfter (Version .V_7_0_0_alpha1 )) {
316
+ if (in .getVersion ().onOrAfter (Version .V_6_4_0 )) {
317
317
params = (P ) in .readNamedWriteable (PersistentTaskParams .class );
318
318
} else {
319
319
params = (P ) in .readOptionalNamedWriteable (PersistentTaskParams .class );
@@ -328,7 +328,7 @@ public void writeTo(StreamOutput out) throws IOException {
328
328
out .writeString (id );
329
329
out .writeLong (allocationId );
330
330
out .writeString (taskName );
331
- if (out .getVersion ().onOrAfter (Version .V_7_0_0_alpha1 )) {
331
+ if (out .getVersion ().onOrAfter (Version .V_6_4_0 )) {
332
332
out .writeNamedWriteable (params );
333
333
} else {
334
334
out .writeOptionalNamedWriteable (params );
Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ public void readFrom(StreamInput in) throws IOException {
86
86
super .readFrom (in );
87
87
taskId = in .readString ();
88
88
taskName = in .readString ();
89
- if (in .getVersion ().onOrAfter (Version .V_7_0_0_alpha1 )) {
89
+ if (in .getVersion ().onOrAfter (Version .V_6_4_0 )) {
90
90
params = in .readNamedWriteable (PersistentTaskParams .class );
91
91
} else {
92
92
params = in .readOptionalNamedWriteable (PersistentTaskParams .class );
@@ -98,7 +98,7 @@ public void writeTo(StreamOutput out) throws IOException {
98
98
super .writeTo (out );
99
99
out .writeString (taskId );
100
100
out .writeString (taskName );
101
- if (out .getVersion ().onOrAfter (Version .V_7_0_0_alpha1 )) {
101
+ if (out .getVersion ().onOrAfter (Version .V_6_4_0 )) {
102
102
out .writeNamedWriteable (params );
103
103
} else {
104
104
out .writeOptionalNamedWriteable (params );
Original file line number Diff line number Diff line change 33
33
import org .elasticsearch .common .io .stream .StreamInput ;
34
34
import org .elasticsearch .common .io .stream .StreamOutput ;
35
35
import org .elasticsearch .common .io .stream .Writeable ;
36
- import org .elasticsearch .common .settings .Settings ;
37
36
import org .elasticsearch .common .xcontent .NamedXContentRegistry ;
38
37
import org .elasticsearch .common .xcontent .XContentBuilder ;
39
38
import org .elasticsearch .common .xcontent .XContentParser ;
43
42
import org .elasticsearch .script .ScriptService ;
44
43
import org .elasticsearch .test .ESIntegTestCase ;
45
44
import org .elasticsearch .threadpool .ThreadPool ;
46
- import org .elasticsearch .transport .TcpTransport ;
47
45
import org .elasticsearch .watcher .ResourceWatcherService ;
48
46
49
47
import java .io .IOException ;
You can’t perform that action at this time.
0 commit comments