You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by mi...@apache.org on 2012/09/30 00:17:34 UTC
svn commit: r1391907 - in /lucene/dev/branches/branch_4x: ./ lucene/
lucene/test-framework/
lucene/test-framework/src/java/org/apache/lucene/index/BasePostingsFormatTestCase.java
Author: mikemccand
Date: Sat Sep 29 22:17:34 2012
New Revision: 1391907
URL: http://svn.apache.org/viewvc?rev=1391907&view=rev
Log:
don't use multiplier in doc count for big/medium terms
Modified:
lucene/dev/branches/branch_4x/ (props changed)
lucene/dev/branches/branch_4x/lucene/ (props changed)
lucene/dev/branches/branch_4x/lucene/test-framework/ (props changed)
lucene/dev/branches/branch_4x/lucene/test-framework/src/java/org/apache/lucene/index/BasePostingsFormatTestCase.java
Modified: lucene/dev/branches/branch_4x/lucene/test-framework/src/java/org/apache/lucene/index/BasePostingsFormatTestCase.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/lucene/test-framework/src/java/org/apache/lucene/index/BasePostingsFormatTestCase.java?rev=1391907&r1=1391906&r2=1391907&view=diff
==============================================================================
--- lucene/dev/branches/branch_4x/lucene/test-framework/src/java/org/apache/lucene/index/BasePostingsFormatTestCase.java (original)
+++ lucene/dev/branches/branch_4x/lucene/test-framework/src/java/org/apache/lucene/index/BasePostingsFormatTestCase.java Sat Sep 29 22:17:34 2012
@@ -202,13 +202,17 @@ public abstract class BasePostingsFormat
if (numBigTerms == 0 || (random().nextInt(10) == 3 && numBigTerms < 2)) {
// Make at least 1 big term, then maybe (~10%
// chance) make another:
- numDocs = RANDOM_MULTIPLIER * _TestUtil.nextInt(random(), 50000, 70000);
+ // TODO: put multplier back, if we can fix OOMEs:
+ //numDocs = RANDOM_MULTIPLIER * _TestUtil.nextInt(random(), 50000, 70000);
+ numDocs = _TestUtil.nextInt(random(), 50000, 70000);
numBigTerms++;
term = "big_" + term;
} else if (numMediumTerms == 0 || (random().nextInt(10) == 3 && numMediumTerms < 5)) {
// Make at least 1 medium term, then maybe (~10%
// chance) make up to 4 more:
- numDocs = RANDOM_MULTIPLIER * _TestUtil.nextInt(random(), 3000, 6000);
+ // TODO: put multplier back, if we can fix OOMEs:
+ //numDocs = RANDOM_MULTIPLIER * _TestUtil.nextInt(random(), 3000, 6000);
+ numDocs = _TestUtil.nextInt(random(), 3000, 6000);
numMediumTerms++;
term = "medium_" + term;
} else if (random().nextBoolean()) {