You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "David Smiley (Jira)" <ji...@apache.org> on 2024/05/09 04:53:00 UTC
[jira] [Resolved] (SOLR-17196) Update IndexFetcher Class to Use Http2SolrClient
[ https://issues.apache.org/jira/browse/SOLR-17196?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
David Smiley resolved SOLR-17196.
---------------------------------
Resolution: Duplicate
> 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: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org