lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sim...@apache.org
Subject svn commit: r1493319 - /lucene/dev/branches/branch_4x/lucene/core/src/test/org/apache/lucene/codecs/lucene3x/TestTermInfosReaderIndex.java
Date Sat, 15 Jun 2013 06:21:03 GMT
Author: simonw
Date: Sat Jun 15 06:21:03 2013
New Revision: 1493319

URL: http://svn.apache.org/r1493319
Log:
LUCENE-5038: Disable CFS on IWC for TestTermInfosReaderIndex non-CFS files are expected

Modified:
    lucene/dev/branches/branch_4x/lucene/core/src/test/org/apache/lucene/codecs/lucene3x/TestTermInfosReaderIndex.java

Modified: lucene/dev/branches/branch_4x/lucene/core/src/test/org/apache/lucene/codecs/lucene3x/TestTermInfosReaderIndex.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/lucene/core/src/test/org/apache/lucene/codecs/lucene3x/TestTermInfosReaderIndex.java?rev=1493319&r1=1493318&r2=1493319&view=diff
==============================================================================
--- lucene/dev/branches/branch_4x/lucene/core/src/test/org/apache/lucene/codecs/lucene3x/TestTermInfosReaderIndex.java
(original)
+++ lucene/dev/branches/branch_4x/lucene/core/src/test/org/apache/lucene/codecs/lucene3x/TestTermInfosReaderIndex.java
Sat Jun 15 06:21:03 2013
@@ -70,9 +70,10 @@ public class TestTermInfosReaderIndex ex
   /** we will manually instantiate preflex-rw here */
   @BeforeClass
   public static void beforeClass() throws Exception {
+    // NOTE: turn off compound file, this test will open some index files directly.
     LuceneTestCase.PREFLEX_IMPERSONATION_IS_ACTIVE = true;
     IndexWriterConfig config = newIndexWriterConfig(TEST_VERSION_CURRENT, 
-        new MockAnalyzer(random(), MockTokenizer.KEYWORD, false));
+        new MockAnalyzer(random(), MockTokenizer.KEYWORD, false)).setUseCompoundFile(false);
     
     termIndexInterval = config.getTermIndexInterval();
     indexDivisor = _TestUtil.nextInt(random(), 1, 10);
@@ -83,7 +84,7 @@ public class TestTermInfosReaderIndex ex
 
     config.setCodec(new PreFlexRWCodec());
     LogMergePolicy mp = newLogMergePolicy();
-    // turn off compound file, this test will open some index files directly.
+    // NOTE: turn off compound file, this test will open some index files directly.
     mp.setNoCFSRatio(0.0);
     config.setMergePolicy(mp);
 



Mime
View raw message