[jira] Commented: (LUCENE-686) Resources not always reclaimed in scorers after each search

2007-03-06 Thread Michael McCandless (JIRA)
[ https://issues.apache.org/jira/browse/LUCENE-686?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12478594 ] Michael McCandless commented on LUCENE-686: --- I just committed some fixes in LUCENE-823 that could apply her

[jira] Commented: (LUCENE-686) Resources not always reclaimed in scorers after each search

2006-11-06 Thread Steven Parkes (JIRA)
[ http://issues.apache.org/jira/browse/LUCENE-686?page=comments#action_12447596 ] Steven Parkes commented on LUCENE-686: -- Came across these: http://www.gossamer-threads.com/lists/lucene/java-dev/34085#34085 http://www.gossamer-threads.com/l

[jira] Commented: (LUCENE-686) Resources not always reclaimed in scorers after each search

2006-10-26 Thread Steven Parkes (JIRA)
[ http://issues.apache.org/jira/browse/LUCENE-686?page=comments#action_12445027 ] Steven Parkes commented on LUCENE-686: -- You're right, and that's actually at the heart of the issue. Seems like part of what needs to be clarified is what clo

[jira] Commented: (LUCENE-686) Resources not always reclaimed in scorers after each search

2006-10-25 Thread Ning Li (JIRA)
[ http://issues.apache.org/jira/browse/LUCENE-686?page=comments#action_12444766 ] Ning Li commented on LUCENE-686: But removing TermDocs.close() will leave IndexInput.close() in a similar half-in/half-out situation: e.g. close() will not be call

[jira] Commented: (LUCENE-686) Resources not always reclaimed in scorers after each search

2006-10-25 Thread Steven Parkes (JIRA)
[ http://issues.apache.org/jira/browse/LUCENE-686?page=comments#action_12444758 ] Steven Parkes commented on LUCENE-686: -- Well, this has been a nice example to drive me into some of the internals. It seems like close() methods are around in

[jira] Commented: (LUCENE-686) Resources not always reclaimed in scorers after each search

2006-10-25 Thread Doron Cohen (JIRA)
[ http://issues.apache.org/jira/browse/LUCENE-686?page=comments#action_12444742 ] Doron Cohen commented on LUCENE-686: An example of how current Lucene code relies on not having to close resoures, in PhraseQuery: ... scorer(IndexRead

[jira] Commented: (LUCENE-686) Resources not always reclaimed in scorers after each search

2006-10-24 Thread Hoss Man (JIRA)
[ http://issues.apache.org/jira/browse/LUCENE-686?page=comments#action_1238 ] Hoss Man commented on LUCENE-686: - Quick summary of some discussion from the mailing list... 1) i replied to paul's comments in the bug indicating that while there

Re: [jira] Commented: (LUCENE-686) Resources not always reclaimed in scorers after each search

2006-10-18 Thread Steven Parkes
The bottom line is: > 1) TermDocs has a close method > 2) anything implimenting TermDocs should be able to trust that > close() will be called > 3) anything iterating over a TermDocs should call close() > > ...ergo: TermScorer needs a c

Re: [jira] Commented: (LUCENE-686) Resources not always reclaimed in scorers after each search

2006-10-18 Thread Paul Elschot
On Wednesday 18 October 2006 06:21, Chris Hostetter wrote: > : > : When custom Scorers and/or Directories need a close method, it can > : > : also be provided by subclassing Scorer, IndexSearcher and Directory > > : > it seems like that would handicap adoption of new Queries/Directories ... > : >

Re: [jira] Commented: (LUCENE-686) Resources not always reclaimed in scorers after each search

2006-10-17 Thread Chris Hostetter
: > : When custom Scorers and/or Directories need a close method, it can : > : also be provided by subclassing Scorer, IndexSearcher and Directory : > it seems like that would handicap adoption of new Queries/Directories ... : > I don't know how many people would have been interested in : > Consta

Re: [jira] Commented: (LUCENE-686) Resources not always reclaimed in scorers after each search

2006-10-17 Thread Ning Li
A new scorer that requires reclaiming resources could be used by many other scorers such as boolean scorers and conjunction scorers. Then those scorers should have a closing method and so do the ones use those scorers... A general closing method would be better, wouldn't it? -

Re: [jira] Commented: (LUCENE-686) Resources not always reclaimed in scorers after each search

2006-10-17 Thread Paul Elschot
On Tuesday 17 October 2006 21:10, Chris Hostetter wrote: > > : When custom Scorers and/or Directories need a close method, it can > : also be provided by subclassing Scorer, IndexSearcher and Directory > : in the custom code. > : Not providing this close method in the Lucene core passes the messag

Re: [jira] Commented: (LUCENE-686) Resources not always reclaimed in scorers after each search

2006-10-17 Thread Chris Hostetter
: When custom Scorers and/or Directories need a close method, it can : also be provided by subclassing Scorer, IndexSearcher and Directory : in the custom code. : Not providing this close method in the Lucene core passes the message : that a working implementation is possible without it. it seems

Re: [jira] Commented: (LUCENE-686) Resources not always reclaimed in scorers after each search

2006-10-17 Thread Paul Elschot
On Tuesday 17 October 2006 20:32, Chris Hostetter wrote: > > : But as long as there is no real a memory leak, what is the point of > : adding this close functionality? > > I think the concern is not so much that Lucene core as is has any leaks -- > but that subclasses of core implimentations have

Re: [jira] Commented: (LUCENE-686) Resources not always reclaimed in scorers after each search

2006-10-17 Thread Chris Hostetter
: But as long as there is no real a memory leak, what is the point of : adding this close functionality? I think the concern is not so much that Lucene core as is has any leaks -- but that subclasses of core implimentations have no mechanism for safely managing resources. Custom Directory implim

[jira] Commented: (LUCENE-686) Resources not always reclaimed in scorers after each search

2006-10-17 Thread Paul Elschot (JIRA)
[ http://issues.apache.org/jira/browse/LUCENE-686?page=comments#action_12443014 ] Paul Elschot commented on LUCENE-686: - In SpanTermQuery in the spans package, there is also a TermPositions that might need to be closed. This means that closin

[jira] Commented: (LUCENE-686) Resources not always reclaimed in scorers after each search

2006-10-17 Thread Ning Li (JIRA)
[ http://issues.apache.org/jira/browse/LUCENE-686?page=comments#action_12442987 ] Ning Li commented on LUCENE-686: > Is there an actual memory leak problem related to this? Right now no. For example, in FS based directories, the index inputs te

[jira] Commented: (LUCENE-686) Resources not always reclaimed in scorers after each search

2006-10-17 Thread Paul Elschot (JIRA)
[ http://issues.apache.org/jira/browse/LUCENE-686?page=comments#action_12442943 ] Paul Elschot commented on LUCENE-686: - Three things: Is there an actual memory leak problem related to this? In ReqExclScorer the two scorers can also be clos