Christine Poerschke created LUCENE-7908:
-------------------------------------------
Summary: fix-or-suppress 3 'Resource leak' warnings in
(ReadersAnd|FrozenBuffered)Updates.java
Key: LUCENE-7908
URL: https://issues.apache.org/jira/browse/LUCENE-7908
Project: Lucene - Core
Issue Type: Sub-task
Reporter: Christine Poerschke
Priority: Minor
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
{code}
[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
{code}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]