You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by si...@apache.org on 2013/06/14 22:38:29 UTC
svn commit: r1493238 -
/lucene/dev/branches/branch_4x/lucene/core/src/test/org/apache/lucene/index/TestBackwardsCompatibility3x.java
Author: simonw
Date: Fri Jun 14 20:38:29 2013
New Revision: 1493238
URL: http://svn.apache.org/r1493238
Log:
LUCENE-5038: Set useCFS on IWC in backwards-compatibility tests
Modified:
lucene/dev/branches/branch_4x/lucene/core/src/test/org/apache/lucene/index/TestBackwardsCompatibility3x.java
Modified: lucene/dev/branches/branch_4x/lucene/core/src/test/org/apache/lucene/index/TestBackwardsCompatibility3x.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/lucene/core/src/test/org/apache/lucene/index/TestBackwardsCompatibility3x.java?rev=1493238&r1=1493237&r2=1493238&view=diff
==============================================================================
--- lucene/dev/branches/branch_4x/lucene/core/src/test/org/apache/lucene/index/TestBackwardsCompatibility3x.java (original)
+++ lucene/dev/branches/branch_4x/lucene/core/src/test/org/apache/lucene/index/TestBackwardsCompatibility3x.java Fri Jun 14 20:38:29 2013
@@ -558,7 +558,7 @@ public class TestBackwardsCompatibility3
mp.setMaxCFSSegmentSizeMB(Double.POSITIVE_INFINITY);
// TODO: remove randomness
IndexWriterConfig conf = new IndexWriterConfig(TEST_VERSION_CURRENT, new MockAnalyzer(random()))
- .setMaxBufferedDocs(10).setMergePolicy(mp);
+ .setMaxBufferedDocs(10).setMergePolicy(mp).setUseCompoundFile(doCFS);
IndexWriter writer = new IndexWriter(dir, conf);
for(int i=0;i<35;i++) {
@@ -576,7 +576,7 @@ public class TestBackwardsCompatibility3
mp.setNoCFSRatio(doCFS ? 1.0 : 0.0);
// TODO: remove randomness
conf = new IndexWriterConfig(TEST_VERSION_CURRENT, new MockAnalyzer(random()))
- .setMaxBufferedDocs(10).setMergePolicy(mp);
+ .setMaxBufferedDocs(10).setMergePolicy(mp).setUseCompoundFile(doCFS);
writer = new IndexWriter(dir, conf);
addNoProxDoc(writer);
writer.close();
@@ -616,7 +616,7 @@ public class TestBackwardsCompatibility3
newIndexWriterConfig(TEST_VERSION_CURRENT, new MockAnalyzer(random())).
setMaxBufferedDocs(-1).
setRAMBufferSizeMB(16.0).
- setMergePolicy(mergePolicy)
+ setMergePolicy(mergePolicy).setUseCompoundFile(true)
);
for(int i=0;i<35;i++) {
addDoc(writer, i);