Skip to content

Commit 24fd1c2

Browse files
SwethaGupthaakolarkunnu
authored andcommitted
Downgrade version check for ser/de of applyLevelAtTransportLayer flag in ClusterHealthRequest (opensearch-project#15803)
Signed-off-by: Swetha Guptha <gupthasg@amazon.com>
1 parent dedb6c6 commit 24fd1c2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/src/main/java/org/opensearch/action/admin/cluster/health/ClusterHealthRequest.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public ClusterHealthRequest(StreamInput in) throws IOException {
115115
if (in.getVersion().onOrAfter(Version.V_2_6_0)) {
116116
ensureNodeWeighedIn = in.readBoolean();
117117
}
118-
if (in.getVersion().onOrAfter(Version.V_3_0_0)) {
118+
if (in.getVersion().onOrAfter(Version.V_2_17_0)) {
119119
applyLevelAtTransportLayer = in.readBoolean();
120120
}
121121
}
@@ -153,7 +153,7 @@ public void writeTo(StreamOutput out) throws IOException {
153153
if (out.getVersion().onOrAfter(Version.V_2_6_0)) {
154154
out.writeBoolean(ensureNodeWeighedIn);
155155
}
156-
if (out.getVersion().onOrAfter(Version.V_3_0_0)) {
156+
if (out.getVersion().onOrAfter(Version.V_2_17_0)) {
157157
out.writeBoolean(applyLevelAtTransportLayer);
158158
}
159159
}

0 commit comments

Comments
 (0)