Apache Solr open-source search software
LUCENE-2060: change CMS's default maxThreadCount from 3 to 1
Michael McCandless0a82d99eff6e
diff --git a/CHANGES.txt b/CHANGES.txtindex 264388d8619..36740698afd 100644--- a/CHANGES.txt+++ b/CHANGES.txt@@ -40,6 +40,13 @@ Changes in runtime behaviorfields when reading. You have to reindex to do that.(Michael Busch, Uwe Schindler)+ * LUCENE-2060: Chagned ConcurrentMergeScheduler's default for+ maxNumThreads from 3 to 1, because in practice we get the most+ gains from running a single merge in the backround. More than one+ concurrent merge causes alot of thrashing (though it's possible on+ SSD storage that there would be net gains). (Jason Rutherglen,+ Mike McCandless)+API Changes* LUCENE-1257, LUCENE-1984, LUCENE-1985, LUCENE-2057,...: Port to Java 1.5diff --git a/src/java/org/apache/lucene/index/ConcurrentMergeScheduler.java b/src/java/org/apache/lucene/index/ConcurrentMergeScheduler.javaindex 36805a844b3..e362fd6f4af 100644--- a/src/java/org/apache/lucene/index/ConcurrentMergeScheduler.java+++ b/src/java/org/apache/lucene/index/ConcurrentMergeScheduler.java@@ -39,7 +39,7 @@ public class ConcurrentMergeScheduler extends MergeScheduler {protected List<MergeThread> mergeThreads = new ArrayList<MergeThread>();// Max number of threads allowed to be merging at once- private int maxThreadCount = 3;+ private int maxThreadCount = 1;protected Directory dir;