mirror of https://github.com/apache/lucene.git
SOLR-5741: correctly set max total connections on the HttpClient.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1569152 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
110fc96440
commit
bd527329ff
|
@ -343,6 +343,9 @@ Bug Fixes
|
|||
* SOLR-5739: Sub-shards created by shard splitting have their update log set
|
||||
to buffering mode on restarts. (Günther Ruck, shalin)
|
||||
|
||||
* SOLR-5741: UpdateShardHandler was not correctly setting max total connections
|
||||
on the HttpClient. (Shawn Heisey)
|
||||
|
||||
Optimizations
|
||||
----------------------
|
||||
|
||||
|
|
|
@ -46,7 +46,7 @@ public class UpdateShardHandler {
|
|||
public UpdateShardHandler(ConfigSolr cfg) {
|
||||
|
||||
clientConnectionManager = new PoolingClientConnectionManager();
|
||||
clientConnectionManager.setDefaultMaxPerRoute(cfg.getMaxUpdateConnections());
|
||||
clientConnectionManager.setMaxTotal(cfg.getMaxUpdateConnections());
|
||||
clientConnectionManager.setDefaultMaxPerRoute(cfg.getMaxUpdateConnectionsPerHost());
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue