mirror of https://github.com/apache/lucene.git
use FSDirectory to avoid OOME
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1594182 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
23760573f9
commit
879935cceb
|
@ -273,7 +273,7 @@ public class TestIndexWriterThreadsToSegments extends LuceneTestCase {
|
|||
}
|
||||
|
||||
public void testDocsStuckInRAMForever() throws Exception {
|
||||
Directory dir = newDirectory();
|
||||
Directory dir = newFSDirectory(createTempDir());
|
||||
IndexWriterConfig iwc = new IndexWriterConfig(TEST_VERSION_CURRENT, new MockAnalyzer(random()));
|
||||
iwc.setRAMBufferSizeMB(.2);
|
||||
Codec codec = Codec.forName("Lucene46");
|
||||
|
|
Loading…
Reference in New Issue