Skip to content

Commit d717748

Browse files
RS146BIJAYdk2k
authored andcommitted
Fix version check for BWC of Discovery Node serialization (opensearch-project#15620)
Signed-off-by: RS146BIJAY <rishavsagar4b1@gmail.com>
1 parent 9c9502e commit d717748

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/main/java/org/opensearch/cluster/node/DiscoveryNode.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ public DiscoveryNode(StreamInput in) throws IOException {
360360

361361
@Override
362362
public void writeTo(StreamOutput out) throws IOException {
363-
if (out.getVersion().onOrAfter(Version.V_3_0_0)) {
363+
if (out.getVersion().onOrAfter(Version.V_2_17_0)) {
364364
writeToUtil(out, false);
365365
} else {
366366
writeToUtil(out, true);

0 commit comments

Comments
 (0)