Apache Lucene open-source search software
SOLR-5374: fix unnamed thread pool
Yonik Seeleyf203921c1c51
diff --git a/solr/core/src/test/org/apache/solr/update/TestDocBasedVersionConstraints.java b/solr/core/src/test/org/apache/solr/update/TestDocBasedVersionConstraints.javaindex af03e6a5247..92aa4f2d9f3 100755--- a/solr/core/src/test/org/apache/solr/update/TestDocBasedVersionConstraints.java+++ b/solr/core/src/test/org/apache/solr/update/TestDocBasedVersionConstraints.java@@ -20,6 +20,7 @@ package org.apache.solr.update;import org.apache.lucene.util._TestUtil;import org.apache.solr.SolrTestCaseJ4;import org.apache.solr.common.SolrException;+import org.apache.solr.util.DefaultSolrThreadFactory;import org.junit.Before;import org.junit.BeforeClass;@@ -358,7 +359,7 @@ public class TestDocBasedVersionConstraints extends SolrTestCaseJ4 {public void testConcurrentAdds() throws Exception {final int NUM_DOCS = atLeast(50);final int MAX_CONCURENT = atLeast(10);- ExecutorService runner = Executors.newFixedThreadPool(MAX_CONCURENT);+ ExecutorService runner = Executors.newFixedThreadPool(MAX_CONCURENT, new DefaultSolrThreadFactory("TestDocBasedVersionConstraints"));// runner = Executors.newFixedThreadPool(1); // to test single threadedtry {for (int id = 0; id < NUM_DOCS; id++) {