Return-Path: Delivered-To: apmail-jakarta-lucene-dev-archive@www.apache.org Received: (qmail 63177 invoked from network); 26 Aug 2004 21:50:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 26 Aug 2004 21:50:25 -0000 Received: (qmail 87128 invoked by uid 500); 26 Aug 2004 21:50:22 -0000 Delivered-To: apmail-jakarta-lucene-dev-archive@jakarta.apache.org Received: (qmail 87097 invoked by uid 500); 26 Aug 2004 21:50:22 -0000 Mailing-List: contact lucene-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Lucene Developers List" Reply-To: "Lucene Developers List" Delivered-To: mailing list lucene-dev@jakarta.apache.org Received: (qmail 87083 invoked by uid 99); 26 Aug 2004 21:50:22 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FORGED_RCVD_HELO X-Spam-Check-By: apache.org Received: from [217.160.91.29] (HELO p15112568.pureserver.info) (217.160.91.29) by apache.org (qpsmtpd/0.27.1) with ESMTP; Thu, 26 Aug 2004 14:50:20 -0700 Received: from intrafind.de (ppp-82-135-5-243.mnet-online.de [82.135.5.243]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by p15112568.pureserver.info (Postfix) with ESMTP id 35A1514015A for ; Thu, 26 Aug 2004 23:50:17 +0200 (CEST) Message-ID: <412E5B10.5030208@intrafind.de> Date: Thu, 26 Aug 2004 23:50:08 +0200 From: Bernhard Messer User-Agent: Mozilla Thunderbird 0.5 (X11/20040208) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Lucene Developers List Subject: Re: lucene 1.4 index file closing References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hui, there is some truth in what you are saying. But at least, the change is reflected in the changes.txt which is available in the internet. Look at the note from Christoph on http://cvs.apache.org/viewcvs.cgi/jakarta-lucene/CHANGES.txt?view=markup "Fixed inconsistencies with index closing. Indexes and directories are now only closed automatically by Lucene when Lucene opened them automatically." regards Bernhard hui wrote: >After checking down, it is a more back compatible issue. >In IndexSearch.java, > public IndexSearcher(IndexReader r) { > this(r, false); > } >The default "false" here easily breaks the existing applications without any >signal. > >Regards, >Hui > >-----Original Message----- >From: hui [mailto:hui@triplehop.com] >Sent: Wednesday, August 25, 2004 6:40 PM >To: lucene-dev@jakarta.apache.org >Subject: lucene 1.4 index file closing > >Hi, >It seems the Lucene 1.4.1 does not close the index files even the >searcher.close is called. Monitor the tomcat(4.1.30), the file handle number >keeps going up when doing search. The increased number matched with the >index file number. The index is based on the same Lucene version. I tried >both of the one or two indexes. The result is the same. After a while the >tomcat, the server is going to run out of the file handle. > The code lines are > >Hits hits =indexSearcher.search(query, new Sort(SortField.FIELD_DOC )); >: >indexSearcher.close(); > > >I changed the line to >Hits hits =indexSearcher.search(query); >And switched back to 1.3 final and it works fine (after searching, the >handles of tomcat went back the same as before searching.) > >This was reported as a bug >http://issues.apache.org/eyebrowse/ReadMsg?listName=lucene-dev@jakarta.apach >e.org >he.org&msgId=1737852> &msgId=1737852 >But it shows it solved on July 12 which means it should not exist at 1.4.1. >Or should I get the latest one from cvs? > >Regards, >Hui > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org >For additional commands, e-mail: lucene-dev-help@jakarta.apache.org > > > --------------------------------------------------------------------- To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: lucene-dev-help@jakarta.apache.org