Skip to content

Commit 436d4cc

Browse files
authored
Remove SearchableSnapshotIndexMetadataUpgrader (#114290)
This service only exists to fix up the metadata on 7.x searchable snapshot indices during/after an upgrade to 8.x, so we don't need it in 9.x.
1 parent cbde7f4 commit 436d4cc

File tree

3 files changed

+0
-347
lines changed

3 files changed

+0
-347
lines changed

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@
108108
import org.elasticsearch.xpack.searchablesnapshots.rest.RestSearchableSnapshotsNodeCachesStatsAction;
109109
import org.elasticsearch.xpack.searchablesnapshots.rest.RestSearchableSnapshotsStatsAction;
110110
import org.elasticsearch.xpack.searchablesnapshots.store.SearchableSnapshotDirectory;
111-
import org.elasticsearch.xpack.searchablesnapshots.upgrade.SearchableSnapshotIndexMetadataUpgrader;
112111

113112
import java.io.IOException;
114113
import java.io.UncheckedIOException;
@@ -359,7 +358,6 @@ public Collection<?> createComponents(PluginServices services) {
359358
components.add(new FrozenCacheServiceSupplier(frozenCacheService.get()));
360359
components.add(new CacheServiceSupplier(cacheService.get()));
361360
if (DiscoveryNode.isMasterNode(settings)) {
362-
new SearchableSnapshotIndexMetadataUpgrader(clusterService, threadPool).initialize();
363361
clusterService.addListener(new RepositoryUuidWatcher(services.rerouteService()));
364362
}
365363
return Collections.unmodifiableList(components);

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

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

x-pack/plugin/searchable-snapshots/src/test/java/org/elasticsearch/xpack/searchablesnapshots/upgrade/SearchableSnapshotIndexMetadataUpgraderTests.java

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

0 commit comments

Comments
 (0)