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 04:18:39 UTC
svn commit: r1610902 -
/lucene/dev/trunk/solr/solrj/src/test/org/apache/solr/client/solrj/impl/ConcurrentUpdateSolrServerTest.java
Author: thelabdude
Date: Wed Jul 16 02:18:38 2014
New Revision: 1610902
URL: http://svn.apache.org/r1610902
Log:
SOLR_6136: fix minor issues found by precommit checks
Modified:
lucene/dev/trunk/solr/solrj/src/test/org/apache/solr/client/solrj/impl/ConcurrentUpdateSolrServerTest.java
Modified: lucene/dev/trunk/solr/solrj/src/test/org/apache/solr/client/solrj/impl/ConcurrentUpdateSolrServerTest.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/solrj/src/test/org/apache/solr/client/solrj/impl/ConcurrentUpdateSolrServerTest.java?rev=1610902&r1=1610901&r2=1610902&view=diff
==============================================================================
--- lucene/dev/trunk/solr/solrj/src/test/org/apache/solr/client/solrj/impl/ConcurrentUpdateSolrServerTest.java (original)
+++ lucene/dev/trunk/solr/solrj/src/test/org/apache/solr/client/solrj/impl/ConcurrentUpdateSolrServerTest.java Wed Jul 16 02:18:38 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;