Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-7907 Ant precommit task WARNINGS about unclosed resources
  3. LUCENE-7908

fix-or-suppress 3 'Resource leak' warnings in (ReadersAnd|FrozenBuffered)Updates.java

    Details

    • Type: Sub-task
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      http://www.github.com/apache/lucene-solr/blob/master/lucene/core/src/java/org/apache/lucene/index/ReadersAndUpdates.java#L846
      http://www.github.com/apache/lucene-solr/blob/master/lucene/core/src/java/org/apache/lucene/index/FrozenBufferedUpdates.java#L186
      http://www.github.com/apache/lucene-solr/blob/master/lucene/core/src/java/org/apache/lucene/index/FrozenBufferedUpdates.java#L144

       [ecj-lint] 4. WARNING in /Users/cpoerschke/lucene-solr/lucene/core/src/java/org/apache/lucene/index/ReadersAndUpdates.java (at line 846)
       [ecj-lint]     SegmentReader newReader = new SegmentReader(info, reader, liveDocs, info.info.maxDoc() - delCount);
       [ecj-lint]                   ^^^^^^^^^
       [ecj-lint] Resource leak: 'newReader' is never closed
      
       [ecj-lint] 2. WARNING in /Users/cpoerschke/lucene-solr/lucene/core/src/java/org/apache/lucene/index/FrozenBufferedUpdates.java (at line 144)
       [ecj-lint]     RAMOutputStream out = new RAMOutputStream();
       [ecj-lint]                     ^^^
       [ecj-lint] Resource leak: 'out' is never closed
      
       [ecj-lint] 3. WARNING in /Users/cpoerschke/lucene-solr/lucene/core/src/java/org/apache/lucene/index/FrozenBufferedUpdates.java (at line 186)
       [ecj-lint]     RAMOutputStream out = new RAMOutputStream();
       [ecj-lint]                     ^^^
       [ecj-lint] Resource leak: 'out' is never closed
      

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            cpoerschke Christine Poerschke
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:

              Development