Skip to content

Commit eea2ef8

Browse files
author
Swetha Guptha
committed
Downgrade version check for ser/de of applyLevelAtTransportLayer flag in ClusterHealthRequest
Signed-off-by: SwethaGuptha <156877431+SwethaGuptha@users.noreply.github.com>
1 parent 66c7780 commit eea2ef8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
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)