Skip to content

Commit

Permalink
[TaskCancellationMonitoringService] Changing version check to 2.9 (op…
Browse files Browse the repository at this point in the history
…ensearch-project#8069)

Signed-off-by: Sagar Upadhyaya <sagar.upadhyaya.121@gmail.com>
Signed-off-by: Rishab Nahata <rnnahata@amazon.com>
  • Loading branch information
sgup432 authored and imRishN committed Jun 27, 2023
1 parent d54f6f3 commit 0c6becb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ public NodeStats(StreamInput in) throws IOException {
} else {
fileCacheStats = null;
}
if (in.getVersion().onOrAfter(Version.V_3_0_0)) {
if (in.getVersion().onOrAfter(Version.V_2_9_0)) {
taskCancellationStats = in.readOptionalWriteable(TaskCancellationStats::new);
} else {
taskCancellationStats = null;
Expand Down Expand Up @@ -408,7 +408,7 @@ public void writeTo(StreamOutput out) throws IOException {
if (out.getVersion().onOrAfter(Version.V_2_7_0)) {
out.writeOptionalWriteable(fileCacheStats);
}
if (out.getVersion().onOrAfter(Version.V_3_0_0)) {
if (out.getVersion().onOrAfter(Version.V_2_9_0)) {
out.writeOptionalWriteable(taskCancellationStats);
}
}
Expand Down

0 comments on commit 0c6becb

Please sign in to comment.