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

Sanjay Dutt commented on SOLR-17196:
------------------------------------

Yes you are right. We can delete this one. But I do not have the permission to 
delete it. So feel free to delete this one.

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

Reply via email to