Return-Path: Delivered-To: apmail-jakarta-lucene-dev-archive@apache.org Received: (qmail 85836 invoked from network); 7 May 2003 23:28:15 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 7 May 2003 23:28:15 -0000 Received: (qmail 26788 invoked by uid 97); 7 May 2003 23:30:24 -0000 Delivered-To: qmlist-jakarta-archive-lucene-dev@nagoya.betaversion.org Received: (qmail 26781 invoked from network); 7 May 2003 23:30:23 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 7 May 2003 23:30:23 -0000 Received: (qmail 85544 invoked by uid 500); 7 May 2003 23:28:13 -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 85523 invoked from network); 7 May 2003 23:28:12 -0000 Received: from rwcrmhc51.attbi.com (204.127.198.38) by daedalus.apache.org with SMTP; 7 May 2003 23:28:12 -0000 Received: from lucene.com (12-210-200-74.client.attbi.com[12.210.200.74]) by attbi.com (rwcrmhc51) with SMTP id <200305072328200510084nm4e>; Wed, 7 May 2003 23:28:20 +0000 Message-ID: <3EB996DB.4000304@lucene.com> Date: Wed, 07 May 2003 16:29:31 -0700 From: Doug Cutting User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030313 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Lucene Developers List Subject: Re: No timeout for "write.lock" References: <3EB92E3F.1070003@etapestry.com> In-Reply-To: <3EB92E3F.1070003@etapestry.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Scott Ganyo wrote: > Is there a reason/what is the reason why the write.lock isn't using the > wait/timeout mechanism? Yes. Lucene only permits a single process to modify an index at once. Multiple processes are permitted to read an index at once, but only one can modify it. The write.lock enforces this, and applications should be written accordingly. Also, a process can own the write lock for an arbitrarily long time (as long as an IndexWriter is open) so a timeout doesn't really make sense. The commit.lock is never held for more than the time it takes to open all of the files in the index, or to write the segments file. This should never take more than a second, and in most cases should be much faster than that. So it makes sense to have a timeout on that lock. Doug --------------------------------------------------------------------- To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: lucene-dev-help@jakarta.apache.org