Skip to content

refactor: remove standalone Solr support, require SolrCloud#71

Open
adityamparikh wants to merge 1 commit intoapache:mainfrom
adityamparikh:remove-standalone-solr-support
Open

refactor: remove standalone Solr support, require SolrCloud#71
adityamparikh wants to merge 1 commit intoapache:mainfrom
adityamparikh:remove-standalone-solr-support

Conversation

@adityamparikh
Copy link
Contributor

Summary

Remove standalone Solr (single-node Core Admin API) support from CollectionService. The project now exclusively supports SolrCloud deployments using the Collections API.

  • CollectionService.listCollections(): Always uses CollectionAdminRequest.List (Collections API) instead of branching on instanceof CloudSolrClient with a Core Admin API fallback
  • Removed unused imports: CloudSolrClient, CoreAdminRequest, CoreAdminResponse, CoreAdminParams
  • Updated Javadoc: Removed references to standalone Solr and dual-mode detection throughout CollectionService and SolrConfig
  • Simplified unit tests: Replaced CloudSolrClient-specific and standalone-specific test branches with unified SolrClient mock tests
    The previous instanceof CloudSolrClient check was effectively dead code — the application always creates an Http2SolrClient, so the standalone branch (Core Admin API) was always taken, even when connecting to SolrCloud. This change removes the broken dual-mode logic and commits to SolrCloud-only support.
  • All existing unit and integration tests pass
  • ./gradlew spotlessApply build passes cleanly

Remove standalone Solr (single-node Core Admin API) support from
CollectionService. The project now exclusively supports SolrCloud
deployments using the Collections API.
Changes:
- CollectionService.listCollections() always uses CollectionAdminRequest
  instead of branching on instanceof CloudSolrClient
- Remove unused imports: CloudSolrClient, CoreAdminRequest,
  CoreAdminResponse, CoreAdminParams
- Update Javadoc to reflect SolrCloud-only support
- Update SolrConfig comment to remove standalone reference
- Simplify unit tests: remove CloudSolrClient-specific and
  standalone-specific test branches, use unified SolrClient mock

Signed-off-by: adityamparikh <aditya.m.parikh@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant