lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael McCandless (JIRA)" <>
Subject [jira] [Created] (LUCENE-3254) BitVector.isSparse is sometimes wrong
Date Tue, 28 Jun 2011 13:49:17 GMT
BitVector.isSparse is sometimes wrong

                 Key: LUCENE-3254
             Project: Lucene - Java
          Issue Type: Bug
          Components: core/other
            Reporter: Michael McCandless
            Assignee: Michael McCandless
             Fix For: 3.4, 4.0

In working on LUCENE-3246, I found a few problems with

  * Its math can overflow int, such that if there are enough deleted
    docs and maxDoc() is largish, isSparse may incorrectly return true

  * It over-estimates the size of the sparse file, since when
    estimating number of bytes for the vInt dgaps it uses bits.length
    instead of bits.length divided by number of set bits (ie, the
    "average" gap between set bits)

This is relatively harmless (just affects performance / size of .del
file on disk, not correctness).

This message is automatically generated by JIRA.
For more information on JIRA, see:


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

View raw message