[
https://issues.apache.org/jira/browse/LUCENE-8398?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16545354#comment-16545354
]
ASF subversion and git services commented on LUCENE-8398:
---------------------------------------------------------
Commit 7cddc0569341209e2569d079d7a2f4d772cb017b in lucene-solr's branch
refs/heads/branch_7x from Erick Erickson
[ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=7cddc05 ]
LUCENE-8398: TieredMergePolicy.getMaxMergedSegmentMB has rounding error
(cherry picked from commit 8ce46b6)
> TieredMergePolicy.getMaxMergedSegmentMB has rounding error
> ----------------------------------------------------------
>
> Key: LUCENE-8398
> URL: https://issues.apache.org/jira/browse/LUCENE-8398
> Project: Lucene - Core
> Issue Type: Improvement
> Components: core/other
> Reporter: Erick Erickson
> Assignee: Erick Erickson
> Priority: Minor
> Attachments: LUCENE-8398.patch, LUCENE-8398.patch
>
>
> This is largely a test artifact since it's unlikely to show up for
> realistically sized segments, but the fix is simple and safe.
> This code first does long division then promotes to double for the last
> calculation.
> {code}
> return maxMergedSegmentBytes/1024/1024.;
> {code}
> The error can be reproduced with: -Dtests.seed=EF80BCABAD74A7CF
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]