lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r1038104 - /lucene/java/branches/lucene_2_9/src/test/org/apache/lucene/index/TestIndexWriter.java
Date Tue, 23 Nov 2010 13:29:27 GMT
Author: mikemccand
Date: Tue Nov 23 13:29:27 2010
New Revision: 1038104

URL: http://svn.apache.org/viewvc?rev=1038104&view=rev
Log:
fix intermittent false fail

Modified:
    lucene/java/branches/lucene_2_9/src/test/org/apache/lucene/index/TestIndexWriter.java

Modified: lucene/java/branches/lucene_2_9/src/test/org/apache/lucene/index/TestIndexWriter.java
URL: http://svn.apache.org/viewvc/lucene/java/branches/lucene_2_9/src/test/org/apache/lucene/index/TestIndexWriter.java?rev=1038104&r1=1038103&r2=1038104&view=diff
==============================================================================
--- lucene/java/branches/lucene_2_9/src/test/org/apache/lucene/index/TestIndexWriter.java
(original)
+++ lucene/java/branches/lucene_2_9/src/test/org/apache/lucene/index/TestIndexWriter.java
Tue Nov 23 13:29:27 2010
@@ -686,7 +686,8 @@ public class TestIndexWriter extends Bas
         for(int i=0;i<19;i++)
           writer.addDocument(doc);
 
-        ((ConcurrentMergeScheduler) writer.getMergeScheduler()).sync();
+        writer.commit();
+        writer.waitForMerges();
         writer.commit();
 
         SegmentInfos sis = new SegmentInfos();



Mime
View raw message