Skip to content

Commit

Permalink
Change version to V_2_17_0 (opensearch-project#15596) (opensearch-pro…
Browse files Browse the repository at this point in the history
…ject#15642)

Signed-off-by: Lakshya Taragi <[email protected]>
(cherry picked from commit 0f53bf9)
(cherry picked from commit d368e3b)
  • Loading branch information
ltaragi committed Sep 4, 2024
1 parent 1d332e0 commit bcd700a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import static org.opensearch.OpenSearchException.OpenSearchExceptionHandle;
import static org.opensearch.OpenSearchException.OpenSearchExceptionHandleRegistry.registerExceptionHandle;
import static org.opensearch.OpenSearchException.UNKNOWN_VERSION_ADDED;
import static org.opensearch.Version.CURRENT;
import static org.opensearch.Version.V_2_10_0;
import static org.opensearch.Version.V_2_17_0;
import static org.opensearch.Version.V_2_1_0;
Expand Down Expand Up @@ -1194,7 +1193,7 @@ public static void registerExceptions() {
org.opensearch.snapshots.TooManyShardsInSnapshotsStatusException.class,
org.opensearch.snapshots.TooManyShardsInSnapshotsStatusException::new,
175,
CURRENT
V_2_17_0
)
);
registerExceptionHandle(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public SnapshotsStatusRequest(StreamInput in) throws IOException {
repository = in.readString();
snapshots = in.readStringArray();
ignoreUnavailable = in.readBoolean();
if (in.getVersion().onOrAfter(Version.CURRENT)) {
if (in.getVersion().onOrAfter(Version.V_2_17_0)) {
indices = in.readOptionalStringArray();
}
}
Expand All @@ -101,7 +101,7 @@ public void writeTo(StreamOutput out) throws IOException {
out.writeString(repository);
out.writeStringArray(snapshots);
out.writeBoolean(ignoreUnavailable);
if (out.getVersion().onOrAfter(Version.CURRENT)) {
if (out.getVersion().onOrAfter(Version.V_2_17_0)) {
out.writeOptionalStringArray(indices);
}
}
Expand Down

0 comments on commit bcd700a

Please sign in to comment.