Apache Solr open-source search software
LUCENE-6479: Fix precommit by using named thread factory
Shalin Shekhar Mangar9e340d3e82f0
diff --git a/lucene/classification/src/java/org/apache/lucene/classification/utils/ConfusionMatrixGenerator.java b/lucene/classification/src/java/org/apache/lucene/classification/utils/ConfusionMatrixGenerator.javaindex 4efaf3d38fb..bef8449b38c 100644--- a/lucene/classification/src/java/org/apache/lucene/classification/utils/ConfusionMatrixGenerator.java+++ b/lucene/classification/src/java/org/apache/lucene/classification/utils/ConfusionMatrixGenerator.java@@ -37,6 +37,7 @@ import org.apache.lucene.search.ScoreDoc;import org.apache.lucene.search.TopDocs;import org.apache.lucene.search.WildcardQuery;import org.apache.lucene.util.BytesRef;+import org.apache.lucene.util.NamedThreadFactory;/*** Utility class to generate the confusion matrix of a {@link Classifier}@@ -62,7 +63,7 @@ public class ConfusionMatrixGenerator {public static <T> ConfusionMatrix getConfusionMatrix(LeafReader reader, Classifier<T> classifier, String classFieldName,String textFieldName) throws IOException {- ExecutorService executorService = Executors.newFixedThreadPool(1);+ ExecutorService executorService = Executors.newFixedThreadPool(1, new NamedThreadFactory("confusion-matrix-gen-"));try {