[ 
https://issues.apache.org/jira/browse/LUCENE-2860?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12980656#action_12980656
 ] 

Michael McCandless commented on LUCENE-2860:
--------------------------------------------

Ugh, my bad!  Thanks Shai.  Patch looks good.

> SegmentInfo.sizeInBytes ignore includeDocStore when caching
> -----------------------------------------------------------
>
>                 Key: LUCENE-2860
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2860
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Index
>            Reporter: Shai Erera
>            Assignee: Shai Erera
>            Priority: Minor
>             Fix For: 3.1, 4.0
>
>         Attachments: LUCENE-2860.patch
>
>
> I noticed that SegmentInfo's sizeInBytes cache is potentially buggy -- it 
> doesn't take into account 'includeDocStores'. I.e., if you call it once w/ 
> 'false' (sizeInBytes won't include the store files) and then with 'true' (or 
> vice versa), you won't get the right sizeInBytes (it won't re-compute, with 
> the store files).
> I'll fix and add a test case demonstrating the bug.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to