Skip to content

Commit

Permalink
Change version to V_2_17_0 (#15596) (#15642)
Browse files Browse the repository at this point in the history
Signed-off-by: Lakshya Taragi <[email protected]>
(cherry picked from commit 0f53bf9)
  • Loading branch information
ltaragi authored Sep 4, 2024
1 parent 34329b3 commit d368e3b
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 d368e3b

Please sign in to comment.