Skip to content

Commit ed94f75

Browse files
committed
Remove EngineClosedException
All usage has been removed in #22631, which is back ported to 5.x. This means 6.x will never get it on the wire and we can remove it
1 parent e37a7d7 commit ed94f75

File tree

3 files changed

+2
-53
lines changed

3 files changed

+2
-53
lines changed

core/src/main/java/org/elasticsearch/ElasticsearchException.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -869,8 +869,7 @@ enum ElasticsearchExceptionHandle {
869869
org.elasticsearch.search.SearchContextException::new, 127, UNKNOWN_VERSION_ADDED),
870870
SEARCH_SOURCE_BUILDER_EXCEPTION(org.elasticsearch.search.builder.SearchSourceBuilderException.class,
871871
org.elasticsearch.search.builder.SearchSourceBuilderException::new, 128, UNKNOWN_VERSION_ADDED),
872-
ENGINE_CLOSED_EXCEPTION(org.elasticsearch.index.engine.EngineClosedException.class,
873-
org.elasticsearch.index.engine.EngineClosedException::new, 129, UNKNOWN_VERSION_ADDED),
872+
// 129 was EngineClosedException
874873
NO_SHARD_AVAILABLE_ACTION_EXCEPTION(org.elasticsearch.action.NoShardAvailableActionException.class,
875874
org.elasticsearch.action.NoShardAvailableActionException::new, 130, UNKNOWN_VERSION_ADDED),
876875
UNAVAILABLE_SHARDS_EXCEPTION(org.elasticsearch.action.UnavailableShardsException.class,

core/src/main/java/org/elasticsearch/index/engine/EngineClosedException.java

Lines changed: 0 additions & 50 deletions
This file was deleted.

core/src/test/java/org/elasticsearch/ExceptionSerializationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -820,7 +820,7 @@ public void testIds() {
820820
ids.put(126, org.elasticsearch.index.mapper.MapperParsingException.class);
821821
ids.put(127, org.elasticsearch.search.SearchContextException.class);
822822
ids.put(128, org.elasticsearch.search.builder.SearchSourceBuilderException.class);
823-
ids.put(129, org.elasticsearch.index.engine.EngineClosedException.class);
823+
ids.put(129, null); // was org.elasticsearch.index.engine.EngineClosedException.class
824824
ids.put(130, org.elasticsearch.action.NoShardAvailableActionException.class);
825825
ids.put(131, org.elasticsearch.action.UnavailableShardsException.class);
826826
ids.put(132, org.elasticsearch.index.engine.FlushFailedEngineException.class);

0 commit comments

Comments
 (0)