jtibshirani commented on code in PR #11867:
URL: https://github.com/apache/lucene/pull/11867#discussion_r1001214017


##########
lucene/core/src/test/org/apache/lucene/document/TestManyKnnVectors.java:
##########
@@ -61,11 +61,13 @@
 @Monster("takes ~2 hours and needs 2GB heap")
 public class TestManyKnnVectors extends LuceneTestCase {
   public void testLargeSegment() throws Exception {
-    // Make sure to use the default codec instead of a random one
-    IndexWriterConfig iwc = 
newIndexWriterConfig().setCodec(TestUtil.getDefaultCodec());
+    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

Review Comment:
   D'oh, yes this shouldn't be bigger than the suggested heap size...



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to