You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Simon Willnauer (Jira)" <ji...@apache.org> on 2020/08/24 16:12:00 UTC

[jira] [Created] (LUCENE-9478) DWPTDeleteQueue leaks memory

Simon Willnauer created LUCENE-9478:
---------------------------------------

             Summary: DWPTDeleteQueue leaks memory
                 Key: LUCENE-9478
                 URL: https://issues.apache.org/jira/browse/LUCENE-9478
             Project: Lucene - Core
          Issue Type: Bug
    Affects Versions: 8.6.1, master (9.0), 8.7
            Reporter: Simon Willnauer


We introduced a broken behavior that leaks memory in DWPTDeleteQueue recently (LUCENE-9304)  The line [here|https://github.com/apache/lucene-solr/blob/18af6325ed98b50c23a1f026ab9d05f17039c731/lucene/core/src/java/org/apache/lucene/index/DocumentsWriterDeleteQueue.java#L594-L596] tries to be smart and even adds a comment that the current impl is safe but it isn't if you reference a final member in a lambda it references _this_ which holds on to the object. I think we need to do a quick 8.6.2 for this. 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org