You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Gui Forget (JIRA)" <ji...@apache.org> on 2009/10/14 19:50:31 UTC
[jira] Created: (LUCENE-1983) IndexInput not closed by
MultiLevelSkipListReader
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
[jira] Updated: (LUCENE-1983) IndexInput not closed by
MultiLevelSkipListReader
Posted by "Gui Forget (JIRA)" <ji...@apache.org>.
[ 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-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org
[jira] Resolved: (LUCENE-1983) IndexInput not closed by
MultiLevelSkipListReader
Posted by "Yonik Seeley (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-1983?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Yonik Seeley resolved LUCENE-1983.
----------------------------------
Resolution: Duplicate
Marking as duplicate of LUCENE-686
> 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-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org