Skip to content

Commit 84679de

Browse files
authored
Snapshot _status API to return correct status for partial snapshots (update version) (opensearch-project#13262)
Signed-off-by: Andriy Redko <andriy.redko@aiven.io>
1 parent c1d5d76 commit 84679de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/main/java/org/opensearch/cluster/SnapshotsInProgress.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -747,7 +747,7 @@ public void writeTo(StreamOutput out) throws IOException {
747747
snapshot.writeTo(out);
748748
out.writeBoolean(includeGlobalState);
749749
out.writeBoolean(partial);
750-
if ((out.getVersion().before(Version.V_3_0_0)) && state == State.PARTIAL) {
750+
if ((out.getVersion().before(Version.V_2_14_0)) && state == State.PARTIAL) {
751751
// Setting to SUCCESS for partial snapshots in older versions to maintain backward compatibility
752752
out.writeByte(State.SUCCESS.value());
753753
} else {

0 commit comments

Comments
 (0)