Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 6653 invoked from network); 15 Apr 2006 16:49:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 15 Apr 2006 16:49:34 -0000 Received: (qmail 35064 invoked by uid 500); 15 Apr 2006 16:49:29 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 35036 invoked by uid 500); 15 Apr 2006 16:49:29 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Received: (qmail 35024 invoked by uid 99); 15 Apr 2006 16:49:28 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 15 Apr 2006 09:49:28 -0700 X-ASF-Spam-Status: No, hits=0.6 required=10.0 tests=HTML_00_10,HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of puneet.lakhina@gmail.com designates 64.233.184.229 as permitted sender) Received: from [64.233.184.229] (HELO wproxy.gmail.com) (64.233.184.229) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 15 Apr 2006 09:49:28 -0700 Received: by wproxy.gmail.com with SMTP id 55so898055wri for ; Sat, 15 Apr 2006 09:49:07 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=ih5ej2WTOJVVpLx6G92CoNBZVBmip70TV3KVUYxul3ZsCtuucvrV2QC32ArVb7C7NpdMfbjlw7A99Bx7ltk0PmdfQYAvFaQ8X3kuTQvbBF+AtwbwWvg+UQPGzBfa7X1oCE+IPB7+qhNuCnqu4aDqPikx+F6xxRoaJuWg+xFlT4U= Received: by 10.65.43.9 with SMTP id v9mr1350394qbj; Sat, 15 Apr 2006 09:49:07 -0700 (PDT) Received: by 10.64.150.20 with HTTP; Sat, 15 Apr 2006 09:49:07 -0700 (PDT) Message-ID: Date: Sat, 15 Apr 2006 22:19:07 +0530 From: "Puneet Lakhina" To: java-user@lucene.apache.org Subject: java.io.IOException: Lock obtain timed out: Lock@/tmp/lucene-dcc982e203ef1d2aebb5d8a4b55b3a60-write.lock MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_41197_11419363.1145119747605" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_41197_11419363.1145119747605 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi all, I am very new to lucene. I am using it in my application to index and serac= h through text files. And my program is more or less similar to the demo privided with lucene distribution. Initially everything was working fine without any problems. But today while running the application i have been getting this exception java.io.IOException: Lock obtain timed out: Lock@/tmp/lucene- dcc982e203ef1d2aebb5d8a4b55b3a60-write.lock whever i try to read or write to the index. I am unable to understand why this is happening. IS there some mistake I am making in the code.. because = I havent changed any code, which was working smoothly up until today!!! My version of lucene is 1.9.1 I deleted the index directory and tried again and voila now it works again!= ! But if I am going to be delivering my application I would really like to know why this was happening to guard against it.. Thanks -- Puneet ------=_Part_41197_11419363.1145119747605--