[ 
https://issues.apache.org/jira/browse/LUCENE-1983?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Gui Forget updated LUCENE-1983:
-------------------------------

    Attachment: LUCENE-1983.patch

Easy fix

> IndexInput not closed by MultiLevelSkipListReader
> -------------------------------------------------
>
>                 Key: LUCENE-1983
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1983
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Index
>    Affects Versions: 2.4
>            Reporter: Gui Forget
>            Priority: Minor
>         Attachments: LUCENE-1983.patch
>
>   Original Estimate: 0.25h
>  Remaining Estimate: 0.25h
>
> IndexInput objects cloned by the SegmentTermDocs and passed to the 
> MultiLevelSkipListReader are never closed. 
> The trace of the creation is as follow (with Lucene 2.4.1):
>       at 
> org.apache.lucene.index.CompoundFileReader$CSIndexInput.clone(CompoundFileReader.java:228)
>       at 
> org.apache.lucene.index.SegmentTermDocs.skipTo(SegmentTermDocs.java:186)
>       at org.apache.lucene.search.TermScorer.explain(TermScorer.java:172)
>       at 
> org.apache.lucene.search.TermQuery$TermWeight.explain(TermQuery.java:107)
>       at 
> org.apache.lucene.search.BooleanQuery$BooleanWeight.explain(BooleanQuery.java:254)
>       at 
> org.apache.lucene.search.IndexSearcher.explain(IndexSearcher.java:170)
>       at org.apache.lucene.search.Searcher.explain(Searcher.java:158)
> Because they are cloned, close() is a no-op but such assumption should not be 
> made in my opinion and objects should be properly closed.

-- 
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