lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rm...@apache.org
Subject svn commit: r1670935 - in /lucene/dev/branches/branch_5x: ./ lucene/ lucene/core/ lucene/core/src/test/org/apache/lucene/index/TestIndexWriterDelete.java
Date Thu, 02 Apr 2015 16:39:13 GMT
Author: rmuir
Date: Thu Apr  2 16:39:12 2015
New Revision: 1670935

URL: http://svn.apache.org/r1670935
Log:
fix excessive file handle usage in test

Modified:
    lucene/dev/branches/branch_5x/   (props changed)
    lucene/dev/branches/branch_5x/lucene/   (props changed)
    lucene/dev/branches/branch_5x/lucene/core/   (props changed)
    lucene/dev/branches/branch_5x/lucene/core/src/test/org/apache/lucene/index/TestIndexWriterDelete.java

Modified: lucene/dev/branches/branch_5x/lucene/core/src/test/org/apache/lucene/index/TestIndexWriterDelete.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/lucene/core/src/test/org/apache/lucene/index/TestIndexWriterDelete.java?rev=1670935&r1=1670934&r2=1670935&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/lucene/core/src/test/org/apache/lucene/index/TestIndexWriterDelete.java
(original)
+++ lucene/dev/branches/branch_5x/lucene/core/src/test/org/apache/lucene/index/TestIndexWriterDelete.java
Thu Apr  2 16:39:12 2015
@@ -1130,7 +1130,9 @@ public class TestIndexWriterDelete exten
                                        .setRAMBufferSizeMB(0.5)
                                        .setMaxBufferedDocs(-1)
                                        .setMergePolicy(NoMergePolicy.INSTANCE)
-                                       .setReaderPooling(false)) {
+                                       .setReaderPooling(false)
+                                       // always use CFS so we don't use tons of file handles
in the test
+                                       .setUseCompoundFile(true)) {
         @Override
         public void doAfterFlush() {
           assertTrue("only " + docsInSegment.get() + " in segment", closing.get() || docsInSegment.get()
>= 7);



Mime
View raw message