mirror of https://github.com/apache/lucene.git
don't make such enormous payloads, this is begging for an OOM with MemoryCodec
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1391886 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d358395a37
commit
197d96548c
|
@ -226,9 +226,9 @@ public abstract class BasePostingsFormatTestCase extends LuceneTestCase {
|
|||
int payloadSize;
|
||||
if (random().nextInt(10) == 7) {
|
||||
// 10% of the time create big payloads:
|
||||
payloadSize = random().nextInt(50);
|
||||
payloadSize = 1 + random().nextInt(3);
|
||||
} else {
|
||||
payloadSize = random().nextInt(10);
|
||||
payloadSize = 1 + random().nextInt(1);
|
||||
}
|
||||
|
||||
boolean fixedPayloads = random().nextBoolean();
|
||||
|
|
Loading…
Reference in New Issue