Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

SOLR-906 -- don't recursivly call run() -- if the server is getting lots of errors, this could be called often and result in a stack overflow error

Ryan McKinley23b5cc212282
diff --git a/src/solrj/org/apache/solr/client/solrj/impl/StreamingUpdateSolrServer.java b/src/solrj/org/apache/solr/client/solrj/impl/StreamingUpdateSolrServer.java
index e820f5f57c1..cc57ab0c57d 100644
--- a/src/solrj/org/apache/solr/client/solrj/impl/StreamingUpdateSolrServer.java
+++ b/src/solrj/org/apache/solr/client/solrj/impl/StreamingUpdateSolrServer.java
@@ -156,9 +156,6 @@ public class StreamingUpdateSolrServer extends CommonsHttpSolrServer
method.releaseConnection();
}
catch( Exception ex ){}
- if( !queue.isEmpty() ) {
- run(); // run again, just in case
- }
// remove it from the list of running things...
synchronized (runners) {