mirror of https://github.com/apache/lucene.git
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
This commit is contained in:
parent
d381b73999
commit
7ad0ac0191
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue