Skip to content

Commit b326c06

Browse files
mingshlbaba-devv
authored andcommitted
Changing version check to 2.9 (opensearch-project#8416)
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 <mingshl@amazon.com>
1 parent 22a1e4e commit b326c06

File tree

1 file changed

+2
-2
lines changed
  • server/src/main/java/org/opensearch/action/admin/cluster/node/stats

1 file changed

+2
-2
lines changed

server/src/main/java/org/opensearch/action/admin/cluster/node/stats/NodeStats.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ public NodeStats(StreamInput in) throws IOException {
193193
} else {
194194
taskCancellationStats = null;
195195
}
196-
if (in.getVersion().onOrAfter(Version.V_3_0_0)) { // TODO Update to 2_9_0 when we backport to 2.x
196+
if (in.getVersion().onOrAfter(Version.V_2_9_0)) {
197197
searchPipelineStats = in.readOptionalWriteable(SearchPipelineStats::new);
198198
} else {
199199
searchPipelineStats = null;
@@ -427,7 +427,7 @@ public void writeTo(StreamOutput out) throws IOException {
427427
if (out.getVersion().onOrAfter(Version.V_2_9_0)) {
428428
out.writeOptionalWriteable(taskCancellationStats);
429429
}
430-
if (out.getVersion().onOrAfter(Version.V_3_0_0)) { // TODO: Update to 2_9_0 once we backport to 2.x
430+
if (out.getVersion().onOrAfter(Version.V_2_9_0)) {
431431
out.writeOptionalWriteable(searchPipelineStats);
432432
}
433433
}

0 commit comments

Comments
 (0)