do not use near-zero maxMergedSegmentMB for this test!

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1717591 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2015-12-02 09:25:45 +00:00
parent 6caaa0c454
commit fd44b39c03
1 changed files with 7 additions and 0 deletions

View File

@ -2324,6 +2324,13 @@ public class TestIndexWriterExceptions extends LuceneTestCase {
}); });
IndexWriterConfig iwc = newIndexWriterConfig(); IndexWriterConfig iwc = newIndexWriterConfig();
MergePolicy mp = iwc.getMergePolicy();
if (mp instanceof TieredMergePolicy) {
TieredMergePolicy tmp = (TieredMergePolicy) mp;
if (tmp.getMaxMergedSegmentMB() < 0.2) {
tmp.setMaxMergedSegmentMB(0.2);
}
}
MergeScheduler ms = iwc.getMergeScheduler(); MergeScheduler ms = iwc.getMergeScheduler();
if (ms instanceof ConcurrentMergeScheduler) { if (ms instanceof ConcurrentMergeScheduler) {
((ConcurrentMergeScheduler) ms).setSuppressExceptions(); ((ConcurrentMergeScheduler) ms).setSuppressExceptions();