Skip to content

Commit bd26056

Browse files
authored
Remove TooManyShardsInSnapshotsStatusException (opensearch-project#15877)
Signed-off-by: Lakshya Taragi <lakshya.taragi@gmail.com>
1 parent aaa92ae commit bd26056

File tree

3 files changed

+0
-79
lines changed

3 files changed

+0
-79
lines changed

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

-8
Original file line numberDiff line numberDiff line change
@@ -1210,14 +1210,6 @@ public static void registerExceptions() {
12101210
V_2_17_0
12111211
)
12121212
);
1213-
registerExceptionHandle(
1214-
new OpenSearchExceptionHandle(
1215-
org.opensearch.snapshots.TooManyShardsInSnapshotsStatusException.class,
1216-
org.opensearch.snapshots.TooManyShardsInSnapshotsStatusException::new,
1217-
175,
1218-
V_2_17_0
1219-
)
1220-
);
12211213
registerExceptionHandle(
12221214
new OpenSearchExceptionHandle(
12231215
org.opensearch.cluster.block.IndexCreateBlockException.class,

server/src/main/java/org/opensearch/snapshots/TooManyShardsInSnapshotsStatusException.java

-69
This file was deleted.

server/src/test/java/org/opensearch/ExceptionSerializationTests.java

-2
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,6 @@
119119
import org.opensearch.snapshots.SnapshotId;
120120
import org.opensearch.snapshots.SnapshotInProgressException;
121121
import org.opensearch.snapshots.SnapshotInUseDeletionException;
122-
import org.opensearch.snapshots.TooManyShardsInSnapshotsStatusException;
123122
import org.opensearch.test.OpenSearchTestCase;
124123
import org.opensearch.test.VersionUtils;
125124
import org.opensearch.transport.ActionNotFoundTransportException;
@@ -899,7 +898,6 @@ public void testIds() {
899898
ids.put(172, ViewNotFoundException.class);
900899
ids.put(173, ViewAlreadyExistsException.class);
901900
ids.put(174, InvalidIndexContextException.class);
902-
ids.put(175, TooManyShardsInSnapshotsStatusException.class);
903901
ids.put(10001, IndexCreateBlockException.class);
904902

905903
Map<Class<? extends OpenSearchException>, Integer> reverse = new HashMap<>();

0 commit comments

Comments
 (0)