doc: add comments about 1 thread for streaming update client

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1710389 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Yonik Seeley 2015-10-24 21:31:23 +00:00
parent 9981ce1749
commit 1f7e417bba
1 changed files with 3 additions and 0 deletions

View File

@ -67,6 +67,9 @@ public class StreamingSolrClients {
String url = getFullUrl(req.node.getUrl());
ConcurrentUpdateSolrClient client = solrClients.get(url);
if (client == null) {
// NOTE: increasing to more than 1 threadCount for the client could cause updates to be reordered
// on a greater scale since the current behavior is to only increase the number of connections/Runners when
// the queue is more than half full.
client = new ConcurrentUpdateSolrClient(url, httpClient, 100, 1, updateExecutor, true) {
@Override
public void handleError(Throwable ex) {