Skip to content

Commit 767c07f

Browse files
authored
Downgrade version check for ser/de of applyLevelAtTransportLayer flag in ClusterHealthRequest (#15803)
Signed-off-by: Swetha Guptha <[email protected]>
1 parent 7c9c01d commit 767c07f

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

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)