lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael McCandless (JIRA)" <>
Subject [jira] [Commented] (LUCENE-3281) OpenBitSet should report the configured capacity/size
Date Wed, 06 Jul 2011 18:48:16 GMT


Michael McCandless commented on LUCENE-3281:

I think the challenge here is numBits is currently not maintained unless assertions are enabled
(eg, see expandingWordNum), so we can't just always return numBits from capacity()...

Maybe we should just always maintain numBits (ie, even when asserts are off)?  Then capacity()
could return numBits.

> OpenBitSet should report the configured capacity/size
> -----------------------------------------------------
>                 Key: LUCENE-3281
>                 URL:
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: core/other
>    Affects Versions: 3.0, 3.0.1, 3.0.2, 3.0.3, 3.1, 3.2
>            Reporter: Robert Ragno
>            Priority: Minor
>   Original Estimate: 2m
>  Remaining Estimate: 2m
> OpenBitSet rounds up the capacity() to the next multiple of 64 from what was specified.
However, this is particularly damaging with the new asserts, which trigger when anything above
the specified capacity is used as an index. The simple fix is to return numBits for capacity().

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