Skip to content

Commit

Permalink
Revert "SOLR-17302: Convert /cluster filestore APIs to JAX-RS (#2470)"
Browse files Browse the repository at this point in the history
This reverts commit a3a0253.
  • Loading branch information
gerlowskija committed May 30, 2024
1 parent e23dcb4 commit fde2023
Show file tree
Hide file tree
Showing 15 changed files with 265 additions and 541 deletions.

This file was deleted.

This file was deleted.

20 changes: 2 additions & 18 deletions solr/core/src/java/org/apache/solr/core/CoreContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,6 @@
import org.apache.solr.core.DirectoryFactory.DirContext;
import org.apache.solr.core.backup.repository.BackupRepository;
import org.apache.solr.core.backup.repository.BackupRepositoryFactory;
import org.apache.solr.filestore.ClusterFileStore;
import org.apache.solr.filestore.DistribFileStore;
import org.apache.solr.filestore.FileStore;
import org.apache.solr.filestore.FileStoreAPI;
import org.apache.solr.handler.ClusterAPI;
import org.apache.solr.handler.RequestHandlerBase;
Expand Down Expand Up @@ -301,9 +298,7 @@ && getZkController().getOverseer() != null
private volatile ClusterEventProducer clusterEventProducer;
private DelegatingPlacementPluginFactory placementPluginFactory;

private DistribFileStore fileStore;
private FileStoreAPI fileStoreAPI;
private ClusterFileStore clusterFileStoreAPI;
private SolrPackageLoader packageLoader;

private final Set<Path> allowPaths;
Expand Down Expand Up @@ -732,8 +727,8 @@ public SolrPackageLoader getPackageLoader() {
return packageLoader;
}

public FileStore getFileStore() {
return fileStore;
public FileStoreAPI getFileStoreAPI() {
return fileStoreAPI;
}

public SolrCache<?, ?> getCache(String name) {
Expand Down Expand Up @@ -865,11 +860,9 @@ private void loadInternal() {
(PublicKeyHandler) containerHandlers.get(PublicKeyHandler.PATH));
pkiAuthenticationSecurityBuilder.initializeMetrics(solrMetricsContext, "/authentication/pki");

fileStore = new DistribFileStore(this);
fileStoreAPI = new FileStoreAPI(this);
registerV2ApiIfEnabled(fileStoreAPI.readAPI);
registerV2ApiIfEnabled(fileStoreAPI.writeAPI);
registerV2ApiIfEnabled(ClusterFileStore.class);

packageLoader = new SolrPackageLoader(this);
registerV2ApiIfEnabled(packageLoader.getPackageAPI().editAPI);
Expand Down Expand Up @@ -1161,15 +1154,6 @@ protected void configure() {
.in(Singleton.class);
}
})
.register(
new AbstractBinder() {
@Override
protected void configure() {
bindFactory(new InjectionFactories.SingletonFactory<>(fileStore))
.to(DistribFileStore.class)
.in(Singleton.class);
}
})
.register(
new AbstractBinder() {
@Override
Expand Down
257 changes: 0 additions & 257 deletions solr/core/src/java/org/apache/solr/filestore/ClusterFileStore.java

This file was deleted.

Loading

0 comments on commit fde2023

Please sign in to comment.