Return-Path: Delivered-To: apmail-jakarta-lucene-dev-archive@www.apache.org Received: (qmail 81699 invoked from network); 28 Apr 2004 21:53:49 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 28 Apr 2004 21:53:49 -0000 Received: (qmail 85658 invoked by uid 500); 28 Apr 2004 21:53:34 -0000 Delivered-To: apmail-jakarta-lucene-dev-archive@jakarta.apache.org Received: (qmail 85639 invoked by uid 500); 28 Apr 2004 21:53:34 -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 85626 invoked by uid 500); 28 Apr 2004 21:53:34 -0000 Received: (qmail 85623 invoked from network); 28 Apr 2004 21:53:34 -0000 Received: from unknown (HELO minotaur.apache.org) (209.237.227.194) by daedalus.apache.org with SMTP; 28 Apr 2004 21:53:34 -0000 Received: (qmail 81670 invoked from network); 28 Apr 2004 21:53:46 -0000 Received: from localhost.hyperreal.org (HELO minotaur.apache.org) (127.0.0.1) by localhost.hyperreal.org with SMTP; 28 Apr 2004 21:53:46 -0000 Content-Type: text/plain; charset="iso-8859-1" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: lucene-cvs@jakarta.apache.org To: lucene-cvs@jakarta.apache.org Subject: =?iso-8859-1?q?=5BJakarta_Lucene_Wiki=5D_New=3A__LockObtainTimedOut?= Date: Wed, 28 Apr 2004 21:53:46 -0000 Message-ID: <20040428215346.81668.96768@minotaur.apache.org> X-Spam-Rating: localhost.hyperreal.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Date: 2004-04-28T14:53:46 Editor: 12.43.53.196 <> Wiki: Jakarta Lucene Wiki Page: LockObtainTimedOut URL: http://wiki.apache.org/jakarta-lucene/LockObtainTimedOut no comment New Page: Lucene < 1.2 creates .lock files in the index directory itself. With > 1.3= it creates it in java.io.tmpdir (usually /tmp on *NIX systems). = If you get the Exception: = java.io.IOException: Lock obtain timed out at org.apache.lucene.store.Lock.obtain(Lock.java:97) at org.apache.lucene.store.Lock$With.run(Lock.java:147) at org.apache.lucene.index.IndexReader.open(IndexReader.java:110) at org.apache.lucene.search.IndexSearcher.(IndexSearcher.java= :80) This is because Lucene was unable to open the index becuase it's currently = locked. Note that on Tomcat locks are kept in TOMCAT_HOME/temp and this can become = confusing because if you check /tmp there are no lock files. --------------------------------------------------------------------- To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: lucene-dev-help@jakarta.apache.org