[
https://issues.apache.org/jira/browse/SOLR-17196?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17844861#comment-17844861
]
David Smiley commented on SOLR-17196:
-------------------------------------
In retrospect, SOLR-16505 was so much work that splitting this off was wise.
> Update IndexFetcher Class to Use Http2SolrClient
> ------------------------------------------------
>
> Key: SOLR-17196
> URL: https://issues.apache.org/jira/browse/SOLR-17196
> Project: Solr
> Issue Type: Sub-task
> Reporter: Sanjay Dutt
> Priority: Major
>
> Current implementation use the older HttpSolrClient and created client using
> PoolingHttpClientConnectionManager calling
> `getUpdateShardHandler().getRecoveryOnlyConnectionManager()`
> Below is the code that used to create HttpSolrClient in IndexFetcher class.
> {code:java}
> HttpClientUtil.createClient(
> httpClientParams,
> core.getCoreContainer().getUpdateShardHandler().getRecoveryOnlyConnectionManager(),
> true,
> executor);{code}
> We are going to replace the above implementation using
> Http2SolrClient.Builder and calling shardHandler.getRecoveryOnlyClient to use
> the common pool for recovery task to create Http2SolrClient.
>
> {code:java}
> Http2SolrClient httpClient =
> new Http2SolrClient.Builder(leaderBaseUrl)
> .withHttpClient(
> core.getCoreContainer().getUpdateShardHandler().getRecoveryOnlyHttpClient())
> .withBasicAuthCredentials(httpBasicAuthUser, httpBasicAuthPassword)
> .build();
> {code}
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]