Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Duplicate
-
None
-
None
-
None
-
None
Description
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.
HttpClientUtil.createClient(
httpClientParams,
core.getCoreContainer().getUpdateShardHandler().getRecoveryOnlyConnectionManager(),
true,
executor);
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.
Http2SolrClient httpClient =
new Http2SolrClient.Builder(leaderBaseUrl)
.withHttpClient( core.getCoreContainer().getUpdateShardHandler().getRecoveryOnlyHttpClient())
.withBasicAuthCredentials(httpBasicAuthUser, httpBasicAuthPassword)
.build();
Attachments
Issue Links
- Is contained by
-
SOLR-16505 Switch UpdateShardHandler.getRecoveryOnlyHttpClient to Jetty HTTP2
- Closed