LUCENE-7175: give enough heap for large dim count, bytes per dim, when writing points

This commit is contained in:
Mike McCandless 2016-04-24 05:58:41 -04:00
parent 69be7dc2a3
commit 7acf8babae
2 changed files with 2 additions and 2 deletions

View File

@ -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);
} }

View File

@ -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,