Skip to content

Commit ee26e01

Browse files
authored
Fixing NodeGatewayStartedShards bwc (de)serialization issues (opensearch-project#4258)
Signed-off-by: Andriy Redko <andriy.redko@aiven.io> Signed-off-by: Andriy Redko <andriy.redko@aiven.io>
1 parent d308a29 commit ee26e01

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

modules/repository-s3/licenses/commons-logging-1.2.jar.sha1

Lines changed: 0 additions & 1 deletion
This file was deleted.

server/src/main/java/org/opensearch/gateway/TransportNodesListGatewayStartedShards.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ public NodeGatewayStartedShards(StreamInput in) throws IOException {
373373
} else {
374374
storeException = null;
375375
}
376-
if (in.getVersion().onOrAfter(Version.V_3_0_0) && in.readBoolean()) {
376+
if (in.getVersion().onOrAfter(Version.V_2_3_0) && in.readBoolean()) {
377377
replicationCheckpoint = new ReplicationCheckpoint(in);
378378
} else {
379379
replicationCheckpoint = null;
@@ -430,7 +430,7 @@ public void writeTo(StreamOutput out) throws IOException {
430430
} else {
431431
out.writeBoolean(false);
432432
}
433-
if (out.getVersion().onOrAfter(Version.V_3_0_0)) {
433+
if (out.getVersion().onOrAfter(Version.V_2_3_0)) {
434434
if (replicationCheckpoint != null) {
435435
out.writeBoolean(true);
436436
replicationCheckpoint.writeTo(out);

0 commit comments

Comments
 (0)