Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump TransportVersion and add RecoveryCommitTooNewException #99591

Prev Previous commit
Next Next commit
add the new exception to the test
  • Loading branch information
pxsalehi committed Sep 18, 2023
commit 1b30915abd811b9d4473960e8ae2584474713568
Original file line number Diff line number Diff line change
@@ -64,6 +64,7 @@
import org.elasticsearch.indices.InvalidIndexTemplateException;
import org.elasticsearch.indices.recovery.PeerRecoveryNotFound;
import org.elasticsearch.indices.recovery.RecoverFilesRecoveryException;
import org.elasticsearch.indices.recovery.RecoveryCommitTooNewException;
import org.elasticsearch.ingest.IngestProcessorException;
import org.elasticsearch.repositories.RepositoryConflictException;
import org.elasticsearch.repositories.RepositoryException;
@@ -832,6 +833,7 @@ public void testIds() {
ids.put(169, HttpHeadersValidationException.class);
ids.put(170, ElasticsearchRoleRestrictionException.class);
ids.put(171, ApiNotAvailableException.class);
ids.put(172, RecoveryCommitTooNewException.class);

Map<Class<? extends ElasticsearchException>, Integer> reverse = new HashMap<>();
for (Map.Entry<Integer, Class<? extends ElasticsearchException>> entry : ids.entrySet()) {