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

Adrien Grand commented on LUCENE-5773:
--------------------------------------

bq. it would be great long term too if somehow codecs (since most code is 
package private but tests have access) could test the relevant producers and so 
on directly. 

Since the current patch works on {{BaseIndexFileFormatTestCase}} that is close 
to it.  Eg. stored fields tests only create documents with stored fields. So 
SegmentReader.ramBytesUsed is close to StoredFieldsProducer.ramBytesUsed. One 
exception to that are norms since they need an indexed field.

> Test SegmentReader.ramBytesUsed
> -------------------------------
>
>                 Key: LUCENE-5773
>                 URL: https://issues.apache.org/jira/browse/LUCENE-5773
>             Project: Lucene - Core
>          Issue Type: Test
>            Reporter: Adrien Grand
>            Assignee: Adrien Grand
>            Priority: Minor
>         Attachments: LUCENE-5773.patch
>
>
> There have been cases where the memory reported by this API was larger than 
> the JVM heap size in the past so we should try to add some basic tests to it.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to