Skip to content

Commit

Permalink
Changing version check to 2.9 (#8416)
Browse files Browse the repository at this point in the history
Update the version of BWC test from 3.0 to 2.9 for search pipeline statistic after the PR #8053 / commit 46c9a21 backported to 2.x branch.

Signed-off-by: Mingshi Liu <mingshl@amazon.com>
  • Loading branch information
mingshl committed Jul 5, 2023
1 parent 50d8006 commit 4657fe7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ public NodeStats(StreamInput in) throws IOException {
} else {
taskCancellationStats = null;
}
if (in.getVersion().onOrAfter(Version.V_3_0_0)) { // TODO Update to 2_9_0 when we backport to 2.x
if (in.getVersion().onOrAfter(Version.V_2_9_0)) {
searchPipelineStats = in.readOptionalWriteable(SearchPipelineStats::new);
} else {
searchPipelineStats = null;
Expand Down Expand Up @@ -427,7 +427,7 @@ public void writeTo(StreamOutput out) throws IOException {
if (out.getVersion().onOrAfter(Version.V_2_9_0)) {
out.writeOptionalWriteable(taskCancellationStats);
}
if (out.getVersion().onOrAfter(Version.V_3_0_0)) { // TODO: Update to 2_9_0 once we backport to 2.x
if (out.getVersion().onOrAfter(Version.V_2_9_0)) {
out.writeOptionalWriteable(searchPipelineStats);
}
}
Expand Down

0 comments on commit 4657fe7

Please sign in to comment.