You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2025/10/02 22:38:00 UTC

[jira] [Commented] (SOLR-17541) LBSolrClient implementations should agree on 'getClient()' semantics

    [ https://issues.apache.org/jira/browse/SOLR-17541?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18024361#comment-18024361 ] 

ASF subversion and git services commented on SOLR-17541:
--------------------------------------------------------

Commit f7757f96cd8c297f061587cc3c1af521628b732f in solr's branch refs/heads/main from James Dyer
[ https://gitbox.apache.org/repos/asf?p=solr.git;h=f7757f96cd8 ]

SOLR-17541: LBSolrClient implementations should agree on 'getClient()' semantics (#2899)


> LBSolrClient implementations should agree on 'getClient()' semantics 
> ---------------------------------------------------------------------
>
>                 Key: SOLR-17541
>                 URL: https://issues.apache.org/jira/browse/SOLR-17541
>             Project: Solr
>          Issue Type: Improvement
>          Components: SolrJ
>    Affects Versions: 9.7
>            Reporter: Jason Gerlowski
>            Assignee: James Dyer
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: main (10.0)
>
>          Time Spent: 5h 10m
>  Remaining Estimate: 0h
>
> LBSolrClient has an abstract "getClient(String url)" method that is used to fetch a "Http" SolrClient appropriate for the specified URL.
> But implementations of this method differ in the client that is returned.  LBHttpSolrClient returns a client that is already pointed at the specified URL and can be used without modification. But LBHttp2SolrClient returns a client with no URL altogether, that must be pointed at the right endpoint prior to use.  This is a bit messy, and complicates the calling code in LBSolrClient quite a bit.
> We should choose one of these approaches and use it for all LBSolrClient implementations.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org