From 81068009aa6548389bc6970f4706c8268b98b628 Mon Sep 17 00:00:00 2001 From: Robert Muir Date: Fri, 28 Jun 2013 20:13:46 +0000 Subject: [PATCH] call these setters in the magical order git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1497905 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/java/org/apache/lucene/util/_TestUtil.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lucene/test-framework/src/java/org/apache/lucene/util/_TestUtil.java b/lucene/test-framework/src/java/org/apache/lucene/util/_TestUtil.java index 89a62e5dc84..f6ebf75b288 100644 --- a/lucene/test-framework/src/java/org/apache/lucene/util/_TestUtil.java +++ b/lucene/test-framework/src/java/org/apache/lucene/util/_TestUtil.java @@ -770,8 +770,9 @@ public class _TestUtil { } MergeScheduler ms = w.getConfig().getMergeScheduler(); if (ms instanceof ConcurrentMergeScheduler) { - ((ConcurrentMergeScheduler) ms).setMaxThreadCount(2); + // wtf... shouldnt it be even lower since its 1 by default?!?! ((ConcurrentMergeScheduler) ms).setMaxMergeCount(3); + ((ConcurrentMergeScheduler) ms).setMaxThreadCount(2); } }