use compound file for DirectUpdateHandlerOptimizeTest to avoid out-of-fd errs

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@680824 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Yonik Seeley 2008-07-29 20:11:57 +00:00
parent eb3858a453
commit 4d12601ec9
2 changed files with 3 additions and 3 deletions

View File

@ -88,7 +88,7 @@ public class DirectUpdateHandlerOptimizeTest extends AbstractSolrTestCase {
File file = new File(indexDir); File file = new File(indexDir);
File[] segs = file.listFiles(new FileFilter() { File[] segs = file.listFiles(new FileFilter() {
public boolean accept(File file) { public boolean accept(File file) {
return file.getName().endsWith("tii"); return file.getName().endsWith("cfs");
} }
}); });
assertTrue("Wrong number of segments: " + segs.length + " does not equal: " + numSegs, segs.length == numSegs); assertTrue("Wrong number of segments: " + segs.length + " does not equal: " + numSegs, segs.length == numSegs);

View File

@ -33,7 +33,7 @@
<!-- Values here affect all index writers and act as a default <!-- Values here affect all index writers and act as a default
unless overridden. --> unless overridden. -->
<!-- Values here affect all index writers and act as a default unless overridden. --> <!-- Values here affect all index writers and act as a default unless overridden. -->
<useCompoundFile>false</useCompoundFile> <useCompoundFile>true</useCompoundFile>
<!-- Set a high merge factor, so we get lots of segments --> <!-- Set a high merge factor, so we get lots of segments -->
<mergeFactor>1000</mergeFactor> <mergeFactor>1000</mergeFactor>
<maxBufferedDocs>2</maxBufferedDocs> <maxBufferedDocs>2</maxBufferedDocs>
@ -87,7 +87,7 @@
<mainIndex> <mainIndex>
<!-- lucene options specific to the main on-disk lucene index --> <!-- lucene options specific to the main on-disk lucene index -->
<useCompoundFile>false</useCompoundFile> <useCompoundFile>true</useCompoundFile>
<mergeFactor>1000</mergeFactor> <mergeFactor>1000</mergeFactor>
<maxBufferedDocs>2</maxBufferedDocs> <maxBufferedDocs>2</maxBufferedDocs>
<maxMergeDocs>2147483647</maxMergeDocs> <maxMergeDocs>2147483647</maxMergeDocs>