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:50 UTC
[lucene-solr] 02/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_8x
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git
commit 5ca00c0b64fe2c2bce3b717be33c2237b68f5252
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);