Skip to content

Commit aec0c0f

Browse files
committed
Update version of TaskInfo header serialization after backport
Update the serialization version after backporting #27764 to 6.x.
1 parent fbb840b commit aec0c0f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/src/main/java/org/elasticsearch/tasks/TaskInfo.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public TaskInfo(StreamInput in) throws IOException {
9797
runningTimeNanos = in.readLong();
9898
cancellable = in.readBoolean();
9999
parentTaskId = TaskId.readFromStream(in);
100-
if (in.getVersion().onOrAfter(Version.V_7_0_0_alpha1)) {
100+
if (in.getVersion().onOrAfter(Version.V_6_2_0)) {
101101
headers = in.readMap(StreamInput::readString, StreamInput::readString);
102102
} else {
103103
headers = Collections.emptyMap();
@@ -115,7 +115,7 @@ public void writeTo(StreamOutput out) throws IOException {
115115
out.writeLong(runningTimeNanos);
116116
out.writeBoolean(cancellable);
117117
parentTaskId.writeTo(out);
118-
if (out.getVersion().onOrAfter(Version.V_7_0_0_alpha1)) {
118+
if (out.getVersion().onOrAfter(Version.V_6_2_0)) {
119119
out.writeMap(headers, StreamOutput::writeString, StreamOutput::writeString);
120120
}
121121
}

0 commit comments

Comments
 (0)