[
https://issues.apache.org/jira/browse/LUCENE-5668?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13995756#comment-13995756
]
ASF subversion and git services commented on LUCENE-5668:
---------------------------------------------------------
Commit 1594109 from [~mikemccand] in branch 'dev/branches/lucene_solr_4_8'
[ https://svn.apache.org/r1594109 ]
LUCENE-5668: fix the codec so segment sizes don't change on each flush
> Off-by-1 error in TieredMergePolicy
> -----------------------------------
>
> Key: LUCENE-5668
> URL: https://issues.apache.org/jira/browse/LUCENE-5668
> Project: Lucene - Core
> Issue Type: Bug
> Reporter: Michael McCandless
> Assignee: Michael McCandless
> Fix For: 4.8.1, 4.9, 5.0
>
>
> When I was comparing performance of different UUIDs, I noticed that TMP was
> merging too soon and picking non-ideal merges as a result. The fix is silly:
> Index: lucene/core/src/java/org/apache/lucene/index/TieredMergePolicy.java
> ===================================================================
> --- lucene/core/src/java/org/apache/lucene/index/TieredMergePolicy.java
> (revision 1593975)
> +++ lucene/core/src/java/org/apache/lucene/index/TieredMergePolicy.java
> (working copy)
> @@ -361,7 +361,7 @@
> return spec;
> }
>
> - if (eligible.size() >= allowedSegCountInt) {
> + if (eligible.size() > allowedSegCountInt) {
>
> // OK we are over budget -- find best merge!
> MergeScore bestScore = null;
--
This message was sent by Atlassian JIRA
(v6.2#6252)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]