Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace CloudLegacySolrClient with CloudHttp2SolrClient in SolrClientCloudManager #2751

Merged
merged 12 commits into from
Oct 24, 2024

Conversation

iamsanjay
Copy link
Contributor

SOLR-16503

This PR removes CloudLegacySolrClient from SolrClientCloudManager and replaces it with CloudHttp2SolrClient. Additionally, all internal classes previously using CloudLegacySolrClient within SolrClientCloudManager have been updated to utilize CloudHttp2SolrClient.

I aim to refactor these implementations to use the abstract CloudSolrClient instead of the concrete class reference. This transition will provide better abstraction and maintainability moving forward.

Checklist

Please review the following and check all that apply:

  • I have reviewed the guidelines for How to Contribute and my code conforms to the standards described there to the best of my ability.
  • I have created a Jira issue and added the issue ID to my pull request title.
  • I have given Solr maintainers access to contribute to my PR branch. (optional but recommended, not available for branches on forks living under an organisation)
  • I have developed this patch against the main branch.
  • I have run ./gradlew check.
  • I have added tests for my changes.
  • I have added documentation for the Reference Guide

@epugh
Copy link
Contributor

epugh commented Oct 8, 2024

I haven't felt knowledgable enough to chime in much on this work, but I want to say how much I appreciate it! This is so exciting that we are finally getting the work done to move to our new clients!

} catch (SolrServerException e) {
throw new IOException(e);
}
}

private static final byte[] EMPTY = new byte[0];

@Override
public byte[] httpRequest(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a reminder -- call this out in the commit message; we removed a public method.

Copy link
Contributor

@dsmiley dsmiley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for working on this

Copy link
Contributor

@dsmiley dsmiley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 excellent

@iamsanjay iamsanjay merged commit d0000b4 into apache:main Oct 24, 2024
3 checks passed
iamsanjay added a commit to iamsanjay/solr that referenced this pull request Oct 24, 2024
* Replaced CloudLegacySolrClient with CloudHttp2SolrClient in SolrClientCloudManager and updated all internal classes accordingly.
* SolrCloudManager#httpRequest is removed.
* Removed dependencies on Apache httpclient and httpcore from solrj-zookeeper

---------

Co-authored-by: David Smiley <dsmiley@apache.org>
(cherry picked from commit d0000b4)
iamsanjay added a commit that referenced this pull request Oct 24, 2024
* Replaced CloudLegacySolrClient with CloudHttp2SolrClient in SolrClientCloudManager and updated all internal classes accordingly.
* SolrCloudManager#httpRequest is removed.
* Removed dependencies on Apache httpclient and httpcore from solrj-zookeeper

---------

Co-authored-by: David Smiley <dsmiley@apache.org>
(cherry picked from commit d0000b4)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants