Author: yonik
Date: Tue Jul 29 13:11:57 2008
New Revision: 680824

URL: http://svn.apache.org/viewvc?rev=680824&view=rev
Log:
use compound file for DirectUpdateHandlerOptimizeTest to avoid out-of-fd errs

Modified:
    
lucene/solr/trunk/src/test/org/apache/solr/update/DirectUpdateHandlerOptimizeTest.java
    lucene/solr/trunk/src/test/test-files/solr/conf/solrconfig-duh-optimize.xml

Modified: 
lucene/solr/trunk/src/test/org/apache/solr/update/DirectUpdateHandlerOptimizeTest.java
URL: 
http://svn.apache.org/viewvc/lucene/solr/trunk/src/test/org/apache/solr/update/DirectUpdateHandlerOptimizeTest.java?rev=680824&r1=680823&r2=680824&view=diff
==============================================================================
--- 
lucene/solr/trunk/src/test/org/apache/solr/update/DirectUpdateHandlerOptimizeTest.java
 (original)
+++ 
lucene/solr/trunk/src/test/org/apache/solr/update/DirectUpdateHandlerOptimizeTest.java
 Tue Jul 29 13:11:57 2008
@@ -88,7 +88,7 @@
     File file = new File(indexDir);
     File[] segs = file.listFiles(new FileFilter() {
       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);

Modified: 
lucene/solr/trunk/src/test/test-files/solr/conf/solrconfig-duh-optimize.xml
URL: 
http://svn.apache.org/viewvc/lucene/solr/trunk/src/test/test-files/solr/conf/solrconfig-duh-optimize.xml?rev=680824&r1=680823&r2=680824&view=diff
==============================================================================
--- lucene/solr/trunk/src/test/test-files/solr/conf/solrconfig-duh-optimize.xml 
(original)
+++ lucene/solr/trunk/src/test/test-files/solr/conf/solrconfig-duh-optimize.xml 
Tue Jul 29 13:11:57 2008
@@ -33,7 +33,7 @@
    <!-- 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 -->
     <mergeFactor>1000</mergeFactor>
     <maxBufferedDocs>2</maxBufferedDocs>
@@ -87,7 +87,7 @@
 
   <mainIndex>
     <!-- lucene options specific to the main on-disk lucene index -->
-    <useCompoundFile>false</useCompoundFile>
+    <useCompoundFile>true</useCompoundFile>
     <mergeFactor>1000</mergeFactor>
     <maxBufferedDocs>2</maxBufferedDocs>
     <maxMergeDocs>2147483647</maxMergeDocs>


Reply via email to