Skip to content

Commit a21d6f9

Browse files
ltaragiakolarkunnu
authored andcommitted
Change version to V_2_17_0 (opensearch-project#15596)
Signed-off-by: Lakshya Taragi <lakshya.taragi@gmail.com>
1 parent caa9e2b commit a21d6f9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

server/src/main/java/org/opensearch/OpenSearchServerException.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1215,7 +1215,7 @@ public static void registerExceptions() {
12151215
org.opensearch.snapshots.TooManyShardsInSnapshotsStatusException.class,
12161216
org.opensearch.snapshots.TooManyShardsInSnapshotsStatusException::new,
12171217
175,
1218-
V_3_0_0
1218+
V_2_17_0
12191219
)
12201220
);
12211221
registerExceptionHandle(

server/src/main/java/org/opensearch/action/admin/cluster/snapshots/status/SnapshotsStatusRequest.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public SnapshotsStatusRequest(StreamInput in) throws IOException {
7878
repository = in.readString();
7979
snapshots = in.readStringArray();
8080
ignoreUnavailable = in.readBoolean();
81-
if (in.getVersion().onOrAfter(Version.CURRENT)) {
81+
if (in.getVersion().onOrAfter(Version.V_2_17_0)) {
8282
indices = in.readOptionalStringArray();
8383
}
8484
}
@@ -89,7 +89,7 @@ public void writeTo(StreamOutput out) throws IOException {
8989
out.writeString(repository);
9090
out.writeStringArray(snapshots);
9191
out.writeBoolean(ignoreUnavailable);
92-
if (out.getVersion().onOrAfter(Version.CURRENT)) {
92+
if (out.getVersion().onOrAfter(Version.V_2_17_0)) {
9393
out.writeOptionalStringArray(indices);
9494
}
9595
}

0 commit comments

Comments
 (0)