lucene-java-commits mailing list archives

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

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

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

Modified: lucene/java/branches/lucene_3_0/src/test/org/apache/lucene/index/TestIndexWriter.java
URL: http://svn.apache.org/viewvc/lucene/java/branches/lucene_3_0/src/test/org/apache/lucene/index/TestIndexWriter.java?rev=1038103&r1=1038102&r2=1038103&view=diff
==============================================================================
--- lucene/java/branches/lucene_3_0/src/test/org/apache/lucene/index/TestIndexWriter.java
(original)
+++ lucene/java/branches/lucene_3_0/src/test/org/apache/lucene/index/TestIndexWriter.java
Tue Nov 23 13:29:12 2010
@@ -652,7 +652,8 @@ public class TestIndexWriter extends Luc
         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