Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

doc: add comments about 1 thread for streaming update client

Yonik Seeley1f7e417bba5f
diff --git a/solr/core/src/java/org/apache/solr/update/StreamingSolrClients.java b/solr/core/src/java/org/apache/solr/update/StreamingSolrClients.java
index 2fcea1e2a61..1e9d6dd21d2 100644
--- a/solr/core/src/java/org/apache/solr/update/StreamingSolrClients.java
+++ b/solr/core/src/java/org/apache/solr/update/StreamingSolrClients.java
@@ -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) {