mirror of https://github.com/apache/lucene.git
LUCENE-4676: Use NoMergePolicy in starvation test to prevent buffered deletes pruning
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1433079 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
32e87ed084
commit
cbadaea8f8
|
@ -32,6 +32,7 @@ import org.apache.lucene.index.IndexDocument;
|
|||
import org.apache.lucene.index.IndexReader;
|
||||
import org.apache.lucene.index.IndexWriter;
|
||||
import org.apache.lucene.index.IndexWriterConfig;
|
||||
import org.apache.lucene.index.NoMergePolicy;
|
||||
import org.apache.lucene.index.RandomIndexWriter;
|
||||
import org.apache.lucene.index.Term;
|
||||
import org.apache.lucene.index.ThreadedIndexingAndSearchingTestCase;
|
||||
|
@ -294,6 +295,7 @@ public class TestNRTManager extends ThreadedIndexingAndSearchingTestCase {
|
|||
*/
|
||||
public void testThreadStarvationNoDeleteNRTReader() throws IOException, InterruptedException {
|
||||
IndexWriterConfig conf = newIndexWriterConfig(TEST_VERSION_CURRENT, new MockAnalyzer(random()));
|
||||
conf.setMergePolicy(random().nextBoolean() ? NoMergePolicy.COMPOUND_FILES : NoMergePolicy.NO_COMPOUND_FILES);
|
||||
Directory d = newDirectory();
|
||||
final CountDownLatch latch = new CountDownLatch(1);
|
||||
final CountDownLatch signal = new CountDownLatch(1);
|
||||
|
|
Loading…
Reference in New Issue