You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ro...@apache.org on 2019/03/01 15:44:46 UTC

[lucene-solr] 01/02: LUCENE-8714: Don't use NoMergePolicy in norms tests

This is an automated email from the ASF dual-hosted git repository.

romseygeek pushed a commit to branch branch_8_0
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git

commit fa3c85f892be7866e162567fd8dbaeb76cfc8fc7
Author: Alan Woodward <ro...@apache.org>
AuthorDate: Fri Mar 1 14:45:05 2019 +0000

    LUCENE-8714: Don't use NoMergePolicy in norms tests
    
    This can cause spurious failures when run in conjunction with HandleLimitFS,
    as we can end up with lots of very small segments which trips the file handles
    limit
---
 .../src/java/org/apache/lucene/index/BaseNormsFormatTestCase.java       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lucene/test-framework/src/java/org/apache/lucene/index/BaseNormsFormatTestCase.java b/lucene/test-framework/src/java/org/apache/lucene/index/BaseNormsFormatTestCase.java
index 6b301f9..e0e1f57 100644
--- a/lucene/test-framework/src/java/org/apache/lucene/index/BaseNormsFormatTestCase.java
+++ b/lucene/test-framework/src/java/org/apache/lucene/index/BaseNormsFormatTestCase.java
@@ -451,7 +451,7 @@ public abstract class BaseNormsFormatTestCase extends BaseIndexFileFormatTestCas
     
     Directory dir = applyCreatedVersionMajor(newDirectory());
     Analyzer analyzer = new MockAnalyzer(random(), MockTokenizer.WHITESPACE, false);
-    IndexWriterConfig conf = newIndexWriterConfig(analyzer).setMergePolicy(NoMergePolicy.INSTANCE);
+    IndexWriterConfig conf = newIndexWriterConfig(analyzer);
     CannedNormSimilarity sim = new CannedNormSimilarity(norms);
     conf.setSimilarity(sim);
     RandomIndexWriter writer = new RandomIndexWriter(random(), dir, conf);