You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by th...@apache.org on 2014/07/16 05:28:28 UTC
svn commit: r1610908 -
/lucene/dev/branches/branch_4x/solr/solrj/src/test/org/apache/solr/client/solrj/impl/ConcurrentUpdateSolrServerTest.java
Author: thelabdude
Date: Wed Jul 16 03:28:28 2014
New Revision: 1610908
URL: http://svn.apache.org/r1610908
Log:
SOLR-6136: backport fixes for precommit issues
Modified:
lucene/dev/branches/branch_4x/solr/solrj/src/test/org/apache/solr/client/solrj/impl/ConcurrentUpdateSolrServerTest.java
Modified: lucene/dev/branches/branch_4x/solr/solrj/src/test/org/apache/solr/client/solrj/impl/ConcurrentUpdateSolrServerTest.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/solr/solrj/src/test/org/apache/solr/client/solrj/impl/ConcurrentUpdateSolrServerTest.java?rev=1610908&r1=1610907&r2=1610908&view=diff
==============================================================================
--- lucene/dev/branches/branch_4x/solr/solrj/src/test/org/apache/solr/client/solrj/impl/ConcurrentUpdateSolrServerTest.java (original)
+++ lucene/dev/branches/branch_4x/solr/solrj/src/test/org/apache/solr/client/solrj/impl/ConcurrentUpdateSolrServerTest.java Wed Jul 16 03:28:28 2014
@@ -38,6 +38,7 @@ import org.apache.solr.SolrJettyTestBase
import org.apache.solr.client.solrj.request.JavaBinUpdateRequestCodec;
import org.apache.solr.client.solrj.request.UpdateRequest;
import org.apache.solr.common.SolrInputDocument;
+import org.apache.solr.common.util.SolrjNamedThreadFactory;
import org.apache.solr.util.ExternalPaths;
import org.junit.BeforeClass;
import org.junit.Test;
@@ -82,7 +83,7 @@ public class ConcurrentUpdateSolrServerT
}
private void setParameters(HttpServletRequest req) {
- parameters = req.getParameterMap();
+ //parameters = req.getParameterMap();
}
@Override
@@ -164,7 +165,7 @@ public class ConcurrentUpdateSolrServerT
cuss.blockUntilFinished();
int poolSize = 5;
- ExecutorService threadPool = Executors.newFixedThreadPool(poolSize);
+ ExecutorService threadPool = Executors.newFixedThreadPool(poolSize, new SolrjNamedThreadFactory("testCUSS"));
int numDocs = 100;
int numRunnables = 5;