Skip to content

Commit d368e3b

Browse files
authored
Change version to V_2_17_0 (opensearch-project#15596) (opensearch-project#15642)
Signed-off-by: Lakshya Taragi <[email protected]> (cherry picked from commit 0f53bf9)
1 parent 34329b3 commit d368e3b

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
import static org.opensearch.OpenSearchException.OpenSearchExceptionHandle;
1414
import static org.opensearch.OpenSearchException.OpenSearchExceptionHandleRegistry.registerExceptionHandle;
1515
import static org.opensearch.OpenSearchException.UNKNOWN_VERSION_ADDED;
16-
import static org.opensearch.Version.CURRENT;
1716
import static org.opensearch.Version.V_2_10_0;
1817
import static org.opensearch.Version.V_2_17_0;
1918
import static org.opensearch.Version.V_2_1_0;
@@ -1194,7 +1193,7 @@ public static void registerExceptions() {
11941193
org.opensearch.snapshots.TooManyShardsInSnapshotsStatusException.class,
11951194
org.opensearch.snapshots.TooManyShardsInSnapshotsStatusException::new,
11961195
175,
1197-
CURRENT
1196+
V_2_17_0
11981197
)
11991198
);
12001199
registerExceptionHandle(

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public SnapshotsStatusRequest(StreamInput in) throws IOException {
9090
repository = in.readString();
9191
snapshots = in.readStringArray();
9292
ignoreUnavailable = in.readBoolean();
93-
if (in.getVersion().onOrAfter(Version.CURRENT)) {
93+
if (in.getVersion().onOrAfter(Version.V_2_17_0)) {
9494
indices = in.readOptionalStringArray();
9595
}
9696
}
@@ -101,7 +101,7 @@ public void writeTo(StreamOutput out) throws IOException {
101101
out.writeString(repository);
102102
out.writeStringArray(snapshots);
103103
out.writeBoolean(ignoreUnavailable);
104-
if (out.getVersion().onOrAfter(Version.CURRENT)) {
104+
if (out.getVersion().onOrAfter(Version.V_2_17_0)) {
105105
out.writeOptionalStringArray(indices);
106106
}
107107
}

0 commit comments

Comments
 (0)