lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erick Erickson (JIRA)" <>
Subject [jira] [Created] (LUCENE-8398) TieredMergePolicy.getMaxMergedSegmentMB has rounding error
Date Mon, 16 Jul 2018 00:19:00 GMT
Erick Erickson created LUCENE-8398:

             Summary: TieredMergePolicy.getMaxMergedSegmentMB has rounding error
                 Key: LUCENE-8398
             Project: Lucene - Core
          Issue Type: Improvement
          Components: core/other
            Reporter: Erick Erickson
            Assignee: Erick Erickson

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.
 return maxMergedSegmentBytes/1024/1024.;

The error can be reproduced with:  -Dtests.seed=EF80BCABAD74A7CF

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message