Skip to content

Commit

Permalink
Snapshot _status API to return correct status for partial snapshots (…
Browse files Browse the repository at this point in the history
…update version) (#13262)

Signed-off-by: Andriy Redko <andriy.redko@aiven.io>
  • Loading branch information
reta committed Apr 17, 2024
1 parent c1d5d76 commit 84679de
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -747,7 +747,7 @@ public void writeTo(StreamOutput out) throws IOException {
snapshot.writeTo(out);
out.writeBoolean(includeGlobalState);
out.writeBoolean(partial);
if ((out.getVersion().before(Version.V_3_0_0)) && state == State.PARTIAL) {
if ((out.getVersion().before(Version.V_2_14_0)) && state == State.PARTIAL) {
// Setting to SUCCESS for partial snapshots in older versions to maintain backward compatibility
out.writeByte(State.SUCCESS.value());
} else {
Expand Down

0 comments on commit 84679de

Please sign in to comment.