lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jpou...@apache.org
Subject svn commit: r1404456 - /lucene/dev/branches/branch_4x/lucene/codecs/src/test/org/apache/lucene/codecs/compressing/TestCompressingStoredFieldsFormat.java
Date Thu, 01 Nov 2012 02:31:05 GMT
Author: jpountz
Date: Thu Nov  1 02:31:05 2012
New Revision: 1404456

URL: http://svn.apache.org/viewvc?rev=1404456&view=rev
Log:
Fix test bug: over-allocation that causes an OOME (merged from r1404451).

Modified:
    lucene/dev/branches/branch_4x/lucene/codecs/src/test/org/apache/lucene/codecs/compressing/TestCompressingStoredFieldsFormat.java

Modified: lucene/dev/branches/branch_4x/lucene/codecs/src/test/org/apache/lucene/codecs/compressing/TestCompressingStoredFieldsFormat.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/lucene/codecs/src/test/org/apache/lucene/codecs/compressing/TestCompressingStoredFieldsFormat.java?rev=1404456&r1=1404455&r2=1404456&view=diff
==============================================================================
--- lucene/dev/branches/branch_4x/lucene/codecs/src/test/org/apache/lucene/codecs/compressing/TestCompressingStoredFieldsFormat.java
(original)
+++ lucene/dev/branches/branch_4x/lucene/codecs/src/test/org/apache/lucene/codecs/compressing/TestCompressingStoredFieldsFormat.java
Thu Nov  1 02:31:05 2012
@@ -312,7 +312,7 @@ public class TestCompressingStoredFields
     onlyStored.setIndexed(false);
 
     final Field smallField = new Field("fld", randomByteArray(random().nextInt(10), 256),
onlyStored);
-    final int numFields = atLeast(1000000);
+    final int numFields = RandomInts.randomIntBetween(random(), 500000, 1000000);
     for (int i = 0; i < numFields; ++i) {
       bigDoc1.add(smallField);
     }



Mime
View raw message