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.
This commit is contained in:
Nhat Nguyen 2021-10-20 18:22:34 -04:00 committed by GitHub
parent 3a11983de2
commit 4c2692e897
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -39,6 +39,7 @@ import java.util.function.Supplier;
import org.apache.lucene.analysis.Analyzer; import org.apache.lucene.analysis.Analyzer;
import org.apache.lucene.analysis.MockAnalyzer; import org.apache.lucene.analysis.MockAnalyzer;
import org.apache.lucene.codecs.Codec; import org.apache.lucene.codecs.Codec;
import org.apache.lucene.codecs.simpletext.SimpleTextCodec;
import org.apache.lucene.document.BinaryDocValuesField; import org.apache.lucene.document.BinaryDocValuesField;
import org.apache.lucene.document.Document; import org.apache.lucene.document.Document;
import org.apache.lucene.document.Field; import org.apache.lucene.document.Field;
@ -3505,6 +3506,9 @@ public abstract class BaseDocValuesFormatTestCase extends BaseIndexFileFormatTes
*/ */
@Nightly @Nightly
public void testHighOrdsSortedSetDV() throws Exception { public void testHighOrdsSortedSetDV() throws Exception {
assumeFalse(
"This test with SimpleTextCodec requires a lot of memory",
getCodec() instanceof SimpleTextCodec);
Directory dir = newDirectory(); Directory dir = newDirectory();
IndexWriterConfig iwc = new IndexWriterConfig(); IndexWriterConfig iwc = new IndexWriterConfig();
iwc.setRAMBufferSizeMB(8 + random().nextInt(64)); iwc.setRAMBufferSizeMB(8 + random().nextInt(64));