Skip to content

Commit

Permalink
Changing version check to 2.9 (opensearch-project#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 opensearch-project#8053 / commit opensearch-project@46c9a21 backported to 2.x branch.

Signed-off-by: Mingshi Liu <[email protected]>
  • Loading branch information
mingshl authored and vikasvb90 committed Jul 12, 2023
1 parent bf85e21 commit be32a35
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 be32a35

Please sign in to comment.