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 2024/10/08 10:16:00 UTC

[jira] [Commented] (SOLR-16503) Switch UpdateShardHandler.getDefaultHttpClient to Jetty HTTP2

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

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

Commit 47c4aae0375f6edf82d608147a9d04acf4f42faa in solr's branch refs/heads/main from Sanjay Dutt
[ https://gitbox.apache.org/repos/asf?p=solr.git;h=47c4aae0375 ]

SOLR-16503: New home for default http2 client (#2689)

* Introduced `HttpSolrClientProvider` as the new provider for `Http2SolrClient`.

* `UpdateShardHandler#getDefaultHttpClient` has been marked deprecated.

* Updated `IOUtils.closeQuietly` to accept `AutoCloseable` instead of `Closeable`, enhancing its flexibility.

---------

Co-authored-by: David Smiley <ds...@apache.org>

> Switch UpdateShardHandler.getDefaultHttpClient to Jetty HTTP2
> -------------------------------------------------------------
>
>                 Key: SOLR-16503
>                 URL: https://issues.apache.org/jira/browse/SOLR-16503
>             Project: Solr
>          Issue Type: Sub-task
>            Reporter: David Smiley
>            Priority: Major
>              Labels: pull-request-available
>         Attachments: Screenshot 2024-03-16 at 9.14.36 PM.png
>
>          Time Spent: 10h 50m
>  Remaining Estimate: 0h
>
> Much of Solr's remaining uses of Apache HttpClient (HTTP 1) is due to {{org.apache.solr.update.UpdateShardHandler#getDefaultHttpClient}} which underlies most Solr-to-Solr connectivity.  This also underlies the {{{}CoreContainer.getSolrClientCache{}}}.  Lets switch to Jetty (HTTP 2).
> ----
> In SolrClientCache in particular:
> Switch use of CloudLegacySolrClient.Builder to CloudSolrClient.Builder
> Switch use of HttpSolrClient.Builder to Http2SolrClient.Builder
> Undeprecate all the methods here.  They should not have been deprecated in the first place.
> The constructor: switch from Apache HttpClient to a Jetty HttpClient.



--
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