From b44b3d44527ed5a808f90b02d12b2dc9f18533ed Mon Sep 17 00:00:00 2001 From: Ajay Kumar Movva Date: Wed, 31 Jan 2024 19:30:49 +0530 Subject: [PATCH] Updating Version to 2.12 for the AC Stats Signed-off-by: Ajay Kumar Movva --- .../action/admin/cluster/node/stats/NodeStats.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/src/main/java/org/opensearch/action/admin/cluster/node/stats/NodeStats.java b/server/src/main/java/org/opensearch/action/admin/cluster/node/stats/NodeStats.java index c2c26b2db4c2d..0e8e12d65b892 100644 --- a/server/src/main/java/org/opensearch/action/admin/cluster/node/stats/NodeStats.java +++ b/server/src/main/java/org/opensearch/action/admin/cluster/node/stats/NodeStats.java @@ -243,7 +243,7 @@ public NodeStats(StreamInput in) throws IOException { repositoriesStats = null; } // TODO: change to V_2_12_0 on main after backport to 2.x - if (in.getVersion().onOrAfter(Version.V_3_0_0)) { + if (in.getVersion().onOrAfter(Version.V_2_12_0)) { admissionControlStats = in.readOptionalWriteable(AdmissionControlStats::new); } else { admissionControlStats = null; @@ -523,8 +523,8 @@ public void writeTo(StreamOutput out) throws IOException { if (out.getVersion().onOrAfter(Version.V_2_12_0)) { out.writeOptionalWriteable(repositoriesStats); } - // TODO: change to V_2_12_0 on main after backport to 2.x - if (out.getVersion().onOrAfter(Version.V_3_0_0)) { + + if (out.getVersion().onOrAfter(Version.V_2_12_0)) { out.writeOptionalWriteable(admissionControlStats); } }