lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gui Forget (JIRA)" <j...@apache.org>
Subject [jira] Created: (LUCENE-1983) IndexInput not closed by MultiLevelSkipListReader
Date Wed, 14 Oct 2009 17:50:31 GMT
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


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


Mime
View raw message