Apache Lucene open-source search software
Disable CFS in TestDefaultCodecParallelizesIO. (#13875)
Adrien Grand396b7b130738
diff --git a/lucene/core/src/test/org/apache/lucene/index/TestDefaultCodecParallelizesIO.java b/lucene/core/src/test/org/apache/lucene/index/TestDefaultCodecParallelizesIO.javaindex 2c4351fa170..58579ab93a4 100644--- a/lucene/core/src/test/org/apache/lucene/index/TestDefaultCodecParallelizesIO.java+++ b/lucene/core/src/test/org/apache/lucene/index/TestDefaultCodecParallelizesIO.java@@ -40,7 +40,14 @@ public class TestDefaultCodecParallelizesIO extends LuceneTestCase {Directory bbDir = new ByteBuffersDirectory();try (LineFileDocs docs = new LineFileDocs(random());IndexWriter w =- new IndexWriter(bbDir, new IndexWriterConfig().setCodec(TestUtil.getDefaultCodec()))) {+ new IndexWriter(+ bbDir,+ new IndexWriterConfig()+ // Disable CFS, this test needs to know about files that are open with the+ // RANDOM_PRELOAD advice, which CFS doesn't allow us to detect.+ .setUseCompoundFile(false)+ .setMergePolicy(newLogMergePolicy(false))+ .setCodec(TestUtil.getDefaultCodec()))) {final int numDocs = atLeast(10_000);for (int d = 0; d < numDocs; ++d) {Document doc = docs.nextDoc();