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

Simon Willnauer commented on LUCENE-1717:
-----------------------------------------

HA, true! I missed that. Nevermind!
I did not catch it as it calls the clear methods directly instead of using 
BufferedDocs#clear(). Might be easier to catch if people look into that if we 
would call clear() instead. I will attach a patch for this beautification.

> IndexWriter does not properly account for the RAM consumed by pending deletes
> -----------------------------------------------------------------------------
>
>                 Key: LUCENE-1717
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1717
>             Project: Lucene - Java
>          Issue Type: Bug
>    Affects Versions: 2.4, 2.4.1
>            Reporter: Michael McCandless
>             Fix For: 2.9
>
>         Attachments: BufferedDeletes_beautification.patch
>
>
> IndexWriter, with autoCommit false, is able to carry buffered deletes for 
> quite some time before materializing them to docIDs (thus freeing up RAM 
> used).
> It's only on triggering a merge (or, commit/close) that the deletes are 
> materialized and the RAM is freed.
> I expect this in practice is a smallish amount of RAM, but we should still 
> fix it.
> I don't have a patch yet so if someone wants to grab this, feel free!!

-- 
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: java-dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-dev-h...@lucene.apache.org

Reply via email to