mirror of https://github.com/apache/lucene.git
LUCENE-7175: give enough heap for large dim count, bytes per dim, when writing points
This commit is contained in:
parent
69be7dc2a3
commit
7acf8babae
|
@ -1153,7 +1153,7 @@ public class TestPointQueries extends LuceneTestCase {
|
||||||
private static Codec getCodec() {
|
private static Codec getCodec() {
|
||||||
if (Codec.getDefault().getName().equals("Lucene60")) {
|
if (Codec.getDefault().getName().equals("Lucene60")) {
|
||||||
int maxPointsInLeafNode = TestUtil.nextInt(random(), 16, 2048);
|
int maxPointsInLeafNode = TestUtil.nextInt(random(), 16, 2048);
|
||||||
double maxMBSortInHeap = 4.0 + (3*random().nextDouble());
|
double maxMBSortInHeap = 5.0 + (3*random().nextDouble());
|
||||||
if (VERBOSE) {
|
if (VERBOSE) {
|
||||||
System.out.println("TEST: using Lucene60PointsFormat with maxPointsInLeafNode=" + maxPointsInLeafNode + " and maxMBSortInHeap=" + maxMBSortInHeap);
|
System.out.println("TEST: using Lucene60PointsFormat with maxPointsInLeafNode=" + maxPointsInLeafNode + " and maxMBSortInHeap=" + maxMBSortInHeap);
|
||||||
}
|
}
|
||||||
|
|
|
@ -196,7 +196,7 @@ public class RandomCodec extends AssertingCodec {
|
||||||
int lowFreqCutoff = TestUtil.nextInt(random, 2, 100);
|
int lowFreqCutoff = TestUtil.nextInt(random, 2, 100);
|
||||||
|
|
||||||
maxPointsInLeafNode = TestUtil.nextInt(random, 16, 2048);
|
maxPointsInLeafNode = TestUtil.nextInt(random, 16, 2048);
|
||||||
maxMBSortInHeap = 4.0 + (3*random.nextDouble());
|
maxMBSortInHeap = 5.0 + (3*random.nextDouble());
|
||||||
bkdSplitRandomSeed = random.nextInt();
|
bkdSplitRandomSeed = random.nextInt();
|
||||||
|
|
||||||
add(avoidCodecs,
|
add(avoidCodecs,
|
||||||
|
|
Loading…
Reference in New Issue