lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rm...@apache.org
Subject svn commit: r1593400 - /lucene/dev/trunk/lucene/test-framework/src/java/org/apache/lucene/index/BaseIndexFileFormatTestCase.java
Date Thu, 08 May 2014 20:09:29 GMT
Author: rmuir
Date: Thu May  8 20:09:29 2014
New Revision: 1593400

URL: http://svn.apache.org/r1593400
Log:
don't use RIW in this test, it depends on stable merging (and RIW does insane things)

Modified:
    lucene/dev/trunk/lucene/test-framework/src/java/org/apache/lucene/index/BaseIndexFileFormatTestCase.java

Modified: lucene/dev/trunk/lucene/test-framework/src/java/org/apache/lucene/index/BaseIndexFileFormatTestCase.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/test-framework/src/java/org/apache/lucene/index/BaseIndexFileFormatTestCase.java?rev=1593400&r1=1593399&r2=1593400&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/test-framework/src/java/org/apache/lucene/index/BaseIndexFileFormatTestCase.java
(original)
+++ lucene/dev/trunk/lucene/test-framework/src/java/org/apache/lucene/index/BaseIndexFileFormatTestCase.java
Thu May  8 20:09:29 2014
@@ -86,10 +86,11 @@ abstract class BaseIndexFileFormatTestCa
   public void testMergeStability() throws Exception {
     Directory dir = newDirectory();
     // do not use newMergePolicy that might return a MockMergePolicy that ignores the no-CFS
ratio
+    // do not use RIW which will change things up!
     MergePolicy mp = newTieredMergePolicy();
     mp.setNoCFSRatio(0);
     IndexWriterConfig cfg = new IndexWriterConfig(TEST_VERSION_CURRENT, new MockAnalyzer(random())).setUseCompoundFile(false).setMergePolicy(mp);
-    RandomIndexWriter w = new RandomIndexWriter(random(), dir, cfg);
+    IndexWriter w = new IndexWriter(dir, cfg);
     final int numDocs = atLeast(500);
     for (int i = 0; i < numDocs; ++i) {
       Document d = new Document();
@@ -105,7 +106,7 @@ abstract class BaseIndexFileFormatTestCa
     mp = newTieredMergePolicy();
     mp.setNoCFSRatio(0);
     cfg = new IndexWriterConfig(TEST_VERSION_CURRENT, new MockAnalyzer(random())).setUseCompoundFile(false).setMergePolicy(mp);
-    w = new RandomIndexWriter(random(), dir2, cfg);
+    w = new IndexWriter(dir2, cfg);
     w.addIndexes(reader);
     w.commit();
     w.close();



Mime
View raw message