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:
Shawn Heisey 2014-02-18 00:30:58 +00:00
parent 110fc96440
commit bd527329ff
2 changed files with 4 additions and 1 deletions

View File

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

View File

@ -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());