Bugs item #987142, was opened at 2004-07-08 12:33
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=491356&aid=987142&group_id=59548

Category: searcher
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Shtroodle (shtroodle)
Assigned to: Doug Cutting (cutting)
Summary: Read handler leak

Initial Comment:
In the class net.nutch.searcher.IndexSearcher
constructor:
public IndexSearcher(File[] segmentDirs) throws IOException

In line 50: there is allocation of this.luceneSearcher as

this.luceneSearcher = new MultiSearcher(searchables);

The constructor of MultiSearcher allocates segment
readers for each segment in the segments directory.
Allocation of the reader opens a handler on the
segments' directories. All these handlers should be
releaseed when the MultiSearcher becomes obsolete.
There is MultiSearcher.close() method that does it.

However, IndexSearcher does not call the method
anywhere  also it doesn't have any close method that
calls this.luceneSearcher.close().
 
Hence any creation  of IndexSearcher  creates a number
of handlers on the segments directories that are never
released (only when the process is finished).

Possible solution:
 add a close() method to all searchers in the Nutch
project.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=491356&aid=987142&group_id=59548


-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Nutch-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nutch-developers

Reply via email to