From be017318d9dd62a8c817b03e3b64484af877d1b4 Mon Sep 17 00:00:00 2001 From: Michael McCandless Date: Tue, 13 May 2014 10:35:20 +0000 Subject: [PATCH] use FSDirectory to avoid OOME git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1594187 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/lucene/index/TestIndexWriterThreadsToSegments.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lucene/core/src/test/org/apache/lucene/index/TestIndexWriterThreadsToSegments.java b/lucene/core/src/test/org/apache/lucene/index/TestIndexWriterThreadsToSegments.java index 72102e39304..f4d466f658b 100644 --- a/lucene/core/src/test/org/apache/lucene/index/TestIndexWriterThreadsToSegments.java +++ b/lucene/core/src/test/org/apache/lucene/index/TestIndexWriterThreadsToSegments.java @@ -160,7 +160,7 @@ public class TestIndexWriterThreadsToSegments extends LuceneTestCase { // LUCENE-5644: index docs w/ multiple threads but in between flushes we limit how many threads can index concurrently in the next // iteration, and then verify that no more segments were flushed than number of threads: public void testSegmentCountOnFlushRandom() throws Exception { - Directory dir = newDirectory(); + Directory dir = newFSDirectory(createTempDir()); IndexWriterConfig iwc = new IndexWriterConfig(TEST_VERSION_CURRENT, new MockAnalyzer(random())); int maxThreadStates = TestUtil.nextInt(random(), 1, 12);