Return-Path: Delivered-To: apmail-jakarta-lucene-user-archive@www.apache.org Received: (qmail 3382 invoked from network); 10 Nov 2004 09:28:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 10 Nov 2004 09:28:56 -0000 Received: (qmail 84026 invoked by uid 500); 10 Nov 2004 09:28:44 -0000 Delivered-To: apmail-jakarta-lucene-user-archive@jakarta.apache.org Received: (qmail 84001 invoked by uid 500); 10 Nov 2004 09:28:44 -0000 Mailing-List: contact lucene-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Lucene Users List" Reply-To: "Lucene Users List" Delivered-To: mailing list lucene-user@jakarta.apache.org Received: (qmail 83986 invoked by uid 99); 10 Nov 2004 09:28:43 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from [69.55.225.129] (HELO ehatchersolutions.com) (69.55.225.129) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 10 Nov 2004 01:28:42 -0800 Received: by ehatchersolutions.com (Postfix, from userid 504) id C64A013E28FB; Wed, 10 Nov 2004 04:28:38 -0500 (EST) Received: from [192.168.1.101] (va-chrvlle-cad1-bdgrp1-4b-b-169.chvlva.adelphia.net [68.169.41.169]) by ehatchersolutions.com (Postfix) with ESMTP id A803B13E28FA for ; Wed, 10 Nov 2004 04:28:37 -0500 (EST) Mime-Version: 1.0 (Apple Message framework v619) In-Reply-To: <1100071073.3496437624.26519.sendItem@bloglines.com> References: <1100071073.3496437624.26519.sendItem@bloglines.com> Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Erik Hatcher Subject: Re: Locking issue Date: Wed, 10 Nov 2004 04:29:05 -0500 To: "Lucene Users List" X-Mailer: Apple Mail (2.619) X-Spam-Status: No, hits=-6.4 required=5.0 tests=AWL,BAYES_01,EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT, RCVD_IN_ORBS,REFERENCES,REPLY_WITH_QUOTES, USER_AGENT_APPLEMAIL version=2.55 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N On Nov 10, 2004, at 2:17 AM, yahootintin.1247688@bloglines.com wrote: > Otis or Erik, do you know if a Reader continously opening should cause > the > Writer to fail with a "Lock obtain timed out" error? No need to address individuals here. With the information provided, I have no idea what the issue may be. There certainly is no issue reading and writing to an index at the same time, but only one process can be writing/deleting from the index at a time. Erik > > --- Lucene Users List" > The attached Java file shows a locking > issue that occurs with >> Lucene. >> >> One thread opens and closes an IndexReader. > The other thread >> opens an IndexWriter, adds a document and then closes > the >> IndexWriter. I would expect that this app should be able to >> happily > run without an issues. >> >> It fails with: >> java.io.IOException: Lock > obtain timed out >> >> Is this expected? I thought a Reader could be opened > while a >> Writer is adding a document. >> >> Any help is appreciated. >> > >> >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org >> For > additional commands, e-mail: lucene-user-help@jakarta.apache.org >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: lucene-user-help@jakarta.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: lucene-user-help@jakarta.apache.org