lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jpou...@apache.org
Subject svn commit: r1404451 - /lucene/dev/trunk/lucene/codecs/src/test/org/apache/lucene/codecs/compressing/TestCompressingStoredFieldsFormat.java
Date Thu, 01 Nov 2012 02:17:24 GMT
Author: jpountz
Date: Thu Nov  1 02:17:24 2012
New Revision: 1404451

URL: http://svn.apache.org/viewvc?rev=1404451&view=rev
Log:
Fix test bug: over-allocation that causes an OOME.

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

Modified: lucene/dev/trunk/lucene/codecs/src/test/org/apache/lucene/codecs/compressing/TestCompressingStoredFieldsFormat.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/codecs/src/test/org/apache/lucene/codecs/compressing/TestCompressingStoredFieldsFormat.java?rev=1404451&r1=1404450&r2=1404451&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/codecs/src/test/org/apache/lucene/codecs/compressing/TestCompressingStoredFieldsFormat.java
(original)
+++ lucene/dev/trunk/lucene/codecs/src/test/org/apache/lucene/codecs/compressing/TestCompressingStoredFieldsFormat.java
Thu Nov  1 02:17:24 2012
@@ -313,7 +313,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