Sanjay Dutt created SOLR-17196: ---------------------------------- Summary: 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
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-unsubscr...@solr.apache.org For additional commands, e-mail: issues-h...@solr.apache.org