From 4c2692e897eb6095a5b6a8416dd9b927c84eb066 Mon Sep 17 00:00:00 2001 From: Nhat Nguyen Date: Wed, 20 Oct 2021 18:22:34 -0400 Subject: [PATCH] Do not run testHighOrdsSortedSetDV with SimpleTextCodec (#403) Avoid running testHighOrdsSortedSetDV with SimpleTextCodec as it requires a lot of memory and the bug was with Lucene90 Codec. --- .../org/apache/lucene/index/BaseDocValuesFormatTestCase.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lucene/test-framework/src/java/org/apache/lucene/index/BaseDocValuesFormatTestCase.java b/lucene/test-framework/src/java/org/apache/lucene/index/BaseDocValuesFormatTestCase.java index f9697303e7e..a9a20f6e31d 100644 --- a/lucene/test-framework/src/java/org/apache/lucene/index/BaseDocValuesFormatTestCase.java +++ b/lucene/test-framework/src/java/org/apache/lucene/index/BaseDocValuesFormatTestCase.java @@ -39,6 +39,7 @@ import java.util.function.Supplier; import org.apache.lucene.analysis.Analyzer; import org.apache.lucene.analysis.MockAnalyzer; import org.apache.lucene.codecs.Codec; +import org.apache.lucene.codecs.simpletext.SimpleTextCodec; import org.apache.lucene.document.BinaryDocValuesField; import org.apache.lucene.document.Document; import org.apache.lucene.document.Field; @@ -3505,6 +3506,9 @@ public abstract class BaseDocValuesFormatTestCase extends BaseIndexFileFormatTes */ @Nightly public void testHighOrdsSortedSetDV() throws Exception { + assumeFalse( + "This test with SimpleTextCodec requires a lot of memory", + getCodec() instanceof SimpleTextCodec); Directory dir = newDirectory(); IndexWriterConfig iwc = new IndexWriterConfig(); iwc.setRAMBufferSizeMB(8 + random().nextInt(64));