You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by jp...@apache.org on 2020/10/05 08:00:41 UTC
[lucene-solr] branch branch_8x updated: Fix rare test failure.
This is an automated email from the ASF dual-hosted git repository.
jpountz pushed a commit to branch branch_8x
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git
The following commit(s) were added to refs/heads/branch_8x by this push:
new 056f5e9 Fix rare test failure.
056f5e9 is described below
commit 056f5e901a06ca66bd2fa1b54976e64cbaa6186f
Author: Adrien Grand <jp...@gmail.com>
AuthorDate: Mon Oct 5 09:58:18 2020 +0200
Fix rare test failure.
This test fails when the maximum segment size is only one byte larger
than the min segment size.
---
.../src/test/org/apache/lucene/index/TestSizeBoundedForceMerge.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lucene/core/src/test/org/apache/lucene/index/TestSizeBoundedForceMerge.java b/lucene/core/src/test/org/apache/lucene/index/TestSizeBoundedForceMerge.java
index 8114868..fcab3db 100644
--- a/lucene/core/src/test/org/apache/lucene/index/TestSizeBoundedForceMerge.java
+++ b/lucene/core/src/test/org/apache/lucene/index/TestSizeBoundedForceMerge.java
@@ -71,7 +71,7 @@ public class TestSizeBoundedForceMerge extends LuceneTestCase {
conf = newWriterConfig();
LogByteSizeMergePolicy lmp = new LogByteSizeMergePolicy();
- lmp.setMaxMergeMBForForcedMerge((min + 1) / (1 << 20));
+ lmp.setMaxMergeMBForForcedMerge(min / (1 << 20));
conf.setMergePolicy(lmp);
writer = new IndexWriter(dir, conf);