Skip to content

Commit

Permalink
Remove TooManyShardsInSnapshotsStatusException (#15877) (#15940)
Browse files Browse the repository at this point in the history
(cherry picked from commit bd26056)

Signed-off-by: Lakshya Taragi <lakshya.taragi@gmail.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
1 parent 448ae5e commit 63d2950
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 79 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1188,14 +1188,6 @@ public static void registerExceptions() {
V_2_17_0
)
);
registerExceptionHandle(
new OpenSearchExceptionHandle(
org.opensearch.snapshots.TooManyShardsInSnapshotsStatusException.class,
org.opensearch.snapshots.TooManyShardsInSnapshotsStatusException::new,
175,
V_2_17_0
)
);
registerExceptionHandle(
new OpenSearchExceptionHandle(
org.opensearch.cluster.block.IndexCreateBlockException.class,
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@
import org.opensearch.snapshots.SnapshotId;
import org.opensearch.snapshots.SnapshotInProgressException;
import org.opensearch.snapshots.SnapshotInUseDeletionException;
import org.opensearch.snapshots.TooManyShardsInSnapshotsStatusException;
import org.opensearch.test.OpenSearchTestCase;
import org.opensearch.test.VersionUtils;
import org.opensearch.transport.ActionNotFoundTransportException;
Expand Down Expand Up @@ -899,7 +898,6 @@ public void testIds() {
ids.put(170, SearchPipelineProcessingException.class);
ids.put(171, CryptoRegistryException.class);
ids.put(174, InvalidIndexContextException.class);
ids.put(175, TooManyShardsInSnapshotsStatusException.class);
ids.put(10001, IndexCreateBlockException.class);

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

0 comments on commit 63d2950

Please sign in to comment.