Skip to content

Commit be0dd12

Browse files
authored
Remove Repository Stats API (elastic#62309)
Now the Repository Stats API is deprecated in 7.10.0 (elastic#62297) we can remove it in 8.0.0. I'm labeling this as >breaking to respect the development process but we're talking about an experimental API that was never released (behind a feature flag).
1 parent 4068274 commit be0dd12

File tree

10 files changed

+1
-489
lines changed

10 files changed

+1
-489
lines changed

x-pack/plugin/searchable-snapshots/qa/rest/src/test/resources/rest-api-spec/test/repository_stats.yml

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

x-pack/plugin/searchable-snapshots/src/main/java/org/elasticsearch/xpack/searchablesnapshots/SearchableSnapshots.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,17 +56,14 @@
5656
import org.elasticsearch.xpack.core.action.XPackUsageFeatureAction;
5757
import org.elasticsearch.xpack.core.searchablesnapshots.MountSearchableSnapshotAction;
5858
import org.elasticsearch.xpack.searchablesnapshots.action.ClearSearchableSnapshotsCacheAction;
59-
import org.elasticsearch.xpack.searchablesnapshots.action.RepositoryStatsAction;
6059
import org.elasticsearch.xpack.searchablesnapshots.action.SearchableSnapshotsStatsAction;
6160
import org.elasticsearch.xpack.searchablesnapshots.action.TransportClearSearchableSnapshotsCacheAction;
6261
import org.elasticsearch.xpack.searchablesnapshots.action.TransportMountSearchableSnapshotAction;
63-
import org.elasticsearch.xpack.searchablesnapshots.action.TransportRepositoryStatsAction;
6462
import org.elasticsearch.xpack.searchablesnapshots.action.TransportSearchableSnapshotsStatsAction;
6563
import org.elasticsearch.xpack.searchablesnapshots.cache.CacheService;
6664
import org.elasticsearch.xpack.searchablesnapshots.cache.NodeEnvironmentCacheCleaner;
6765
import org.elasticsearch.xpack.searchablesnapshots.rest.RestClearSearchableSnapshotsCacheAction;
6866
import org.elasticsearch.xpack.searchablesnapshots.rest.RestMountSearchableSnapshotAction;
69-
import org.elasticsearch.xpack.searchablesnapshots.rest.RestRepositoryStatsAction;
7067
import org.elasticsearch.xpack.searchablesnapshots.rest.RestSearchableSnapshotsStatsAction;
7168

7269
import java.util.Collection;
@@ -265,7 +262,6 @@ public Optional<EngineFactory> getEngineFactory(IndexSettings indexSettings) {
265262
new ActionHandler<>(SearchableSnapshotsStatsAction.INSTANCE, TransportSearchableSnapshotsStatsAction.class),
266263
new ActionHandler<>(ClearSearchableSnapshotsCacheAction.INSTANCE, TransportClearSearchableSnapshotsCacheAction.class),
267264
new ActionHandler<>(MountSearchableSnapshotAction.INSTANCE, TransportMountSearchableSnapshotAction.class),
268-
new ActionHandler<>(RepositoryStatsAction.INSTANCE, TransportRepositoryStatsAction.class),
269265
new ActionHandler<>(XPackUsageFeatureAction.SEARCHABLE_SNAPSHOTS, SearchableSnapshotsUsageTransportAction.class),
270266
new ActionHandler<>(XPackInfoFeatureAction.SEARCHABLE_SNAPSHOTS, SearchableSnapshotsInfoTransportAction.class)
271267
);
@@ -283,8 +279,7 @@ public List<RestHandler> getRestHandlers(
283279
return List.of(
284280
new RestSearchableSnapshotsStatsAction(),
285281
new RestClearSearchableSnapshotsCacheAction(),
286-
new RestMountSearchableSnapshotAction(),
287-
new RestRepositoryStatsAction()
282+
new RestMountSearchableSnapshotAction()
288283
);
289284
}
290285

x-pack/plugin/searchable-snapshots/src/main/java/org/elasticsearch/xpack/searchablesnapshots/action/RepositoryStatsAction.java

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

x-pack/plugin/searchable-snapshots/src/main/java/org/elasticsearch/xpack/searchablesnapshots/action/RepositoryStatsNodeRequest.java

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

x-pack/plugin/searchable-snapshots/src/main/java/org/elasticsearch/xpack/searchablesnapshots/action/RepositoryStatsNodeResponse.java

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

x-pack/plugin/searchable-snapshots/src/main/java/org/elasticsearch/xpack/searchablesnapshots/action/RepositoryStatsRequest.java

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

x-pack/plugin/searchable-snapshots/src/main/java/org/elasticsearch/xpack/searchablesnapshots/action/RepositoryStatsResponse.java

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

0 commit comments

Comments
 (0)