diff --git a/lucene/codecs/src/test/org/apache/lucene/codecs/memory/TestDirectPostingsFormat.java b/lucene/codecs/src/test/org/apache/lucene/codecs/memory/TestDirectPostingsFormat.java index a4a1cc017ab..9e94b95556c 100644 --- a/lucene/codecs/src/test/org/apache/lucene/codecs/memory/TestDirectPostingsFormat.java +++ b/lucene/codecs/src/test/org/apache/lucene/codecs/memory/TestDirectPostingsFormat.java @@ -21,10 +21,12 @@ import org.apache.lucene.codecs.Codec; import org.apache.lucene.codecs.PostingsFormat; import org.apache.lucene.codecs.lucene40.Lucene40Codec; import org.apache.lucene.index.BasePostingsFormatTestCase; +import org.junit.Ignore; /** * Tests DirectPostingsFormat */ +@Ignore("Put this test back once we fix OOMEs") public class TestDirectPostingsFormat extends BasePostingsFormatTestCase { // TODO: randomize parameters private final PostingsFormat postings = new DirectPostingsFormat(); diff --git a/lucene/core/src/test/org/apache/lucene/codecs/perfield/TestPerFieldPostingsFormat.java b/lucene/core/src/test/org/apache/lucene/codecs/perfield/TestPerFieldPostingsFormat.java index 01ae3c24a0b..9fe82c73462 100644 --- a/lucene/core/src/test/org/apache/lucene/codecs/perfield/TestPerFieldPostingsFormat.java +++ b/lucene/core/src/test/org/apache/lucene/codecs/perfield/TestPerFieldPostingsFormat.java @@ -33,7 +33,9 @@ public class TestPerFieldPostingsFormat extends BasePostingsFormatTestCase { @Override public void setUp() throws Exception { super.setUp(); - codec = new RandomCodec(new Random(random().nextLong()), Collections.EMPTY_SET); + // TODO: re-enable once we fix OOMEs in DirectPF + //codec = new RandomCodec(new Random(random().nextLong()), Collections.EMPTY_SET); + codec = new RandomCodec(new Random(random().nextLong()), Collections.singleton("Direct")); } @Override diff --git a/lucene/core/src/test/org/apache/lucene/index/TestPostingsFormat.java b/lucene/core/src/test/org/apache/lucene/index/TestPostingsFormat.java index 3b9ee178386..c1d5fbf398b 100644 --- a/lucene/core/src/test/org/apache/lucene/index/TestPostingsFormat.java +++ b/lucene/core/src/test/org/apache/lucene/index/TestPostingsFormat.java @@ -44,6 +44,7 @@ import org.apache.lucene.util.Bits; import org.apache.lucene.util.BytesRef; import org.apache.lucene.util.Constants; import org.apache.lucene.util.FixedBitSet; +import org.apache.lucene.util.LuceneTestCase.SuppressCodecs; import org.apache.lucene.util.LuceneTestCase; import org.apache.lucene.util._TestUtil; import org.junit.AfterClass; @@ -52,6 +53,7 @@ import org.junit.BeforeClass; /** Tests the codec configuration defined by LuceneTestCase randomly * (typically a mix across different fields). */ +@SuppressCodecs({"Direct"}) // Put back once we fix DirectPF's OOMEs public class TestPostingsFormat extends BasePostingsFormatTestCase { @Override