From 09d2b68014d279b4e216b3ddb5f57c0e4f2c6555 Mon Sep 17 00:00:00 2001 From: Julie Tibshirani Date: Thu, 20 Oct 2022 16:31:32 -0700 Subject: [PATCH] Fix RAM buffer size --- .../src/test/org/apache/lucene/document/TestManyKnnVectors.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lucene/core/src/test/org/apache/lucene/document/TestManyKnnVectors.java b/lucene/core/src/test/org/apache/lucene/document/TestManyKnnVectors.java index aced5da3e3f..3110287be94 100644 --- a/lucene/core/src/test/org/apache/lucene/document/TestManyKnnVectors.java +++ b/lucene/core/src/test/org/apache/lucene/document/TestManyKnnVectors.java @@ -59,7 +59,7 @@ public class TestManyKnnVectors extends LuceneTestCase { public void testLargeSegment() throws Exception { IndexWriterConfig iwc = new IndexWriterConfig(); iwc.setCodec(TestUtil.getDefaultCodec()); // Make sure to use the default codec instead of a random one - iwc.setRAMBufferSizeMB(3_000); // Use a 3GB buffer to create a single large segment + iwc.setRAMBufferSizeMB(200); // Use a 200MB buffer to create larger initial segments String fieldName = "field"; VectorSimilarityFunction similarityFunction = VectorSimilarityFunction.DOT_PRODUCT;