Re: Lock obtain timed out from an MDB

2005-01-06 Thread Joseph Ottinger
On Thu, 6 Jan 2005, Erik Hatcher wrote: > > On Jan 6, 2005, at 10:41 AM, Joseph Ottinger wrote: > > SHouldn't Lucene warn the user if they do something like this? > > When a user indexes a null? Or attempts to write to the index from two > different IndexWriter instances? > > I believe you should

Re: Lock obtain timed out from an MDB

2005-01-06 Thread Erik Hatcher
On Jan 6, 2005, at 10:41 AM, Joseph Ottinger wrote: SHouldn't Lucene warn the user if they do something like this? When a user indexes a null? Or attempts to write to the index from two different IndexWriter instances? I believe you should get an NPE if you try index a null field value? No?

Re: Lock obtain timed out from an MDB

2005-01-06 Thread Joseph Ottinger
e=false > > } catch (file not found) { > >open the index with create=true > > } > > index.optimize(); > > index.close(); > > > > Now, when I fire off any messages to the MDB, it yields the following: > > > > java.io.IOException: Lock obtain tim

Re: Lock obtain timed out from an MDB

2005-01-06 Thread Erik Hatcher
the index with create=false } catch (file not found) { open the index with create=true } index.optimize(); index.close(); Now, when I fire off any messages to the MDB, it yields the following: java.io.IOException: Lock obtain timed out: Lock@/var/tmp/lucene-d6b0a3281487d1bc4d169d00426f

Re: Lock obtain timed out from an MDB

2005-01-06 Thread Joseph Ottinger
ages to the MDB, it yields the following: java.io.IOException: Lock obtain timed out: Lock@/var/tmp/lucene-d6b0a3281487d1bc4d169d00426f475d-write.lock at org.apache.lucene.store.Lock.obtain(Lock.java:58) Now, this is on only two messages to the MDB, not just a flood of messages. Two handle

Lock obtain timed out from an MDB

2005-01-06 Thread Joseph Ottinger
If this is a stupid question, I deeply apologize. I'm stumped. I have a message-driven EJB using Lucene. In *every* case where the MDB is trying to create an index, I'm getting "Lock obtain timed out." It's in org.apache.lucene.store.Lock.obtain(Lock.java:58), which the

Re: indexreader throwing IOException with lock obtain timed out

2004-05-31 Thread Sebastian Ho
cument which is working fine. > > - > int deleteDoc = 0; > deleteDoc = IndexReader.open(dstDir).delete(new Term("url", url)); > IndexReader.open(dstDir).close(); > - > > The w

indexreader throwing IOException with lock obtain timed out

2004-05-31 Thread Sebastian Ho
("url", url)); IndexReader.open(dstDir).close(); - The writer after that throws an IOException : Lock obtain timed out. - Analyzer analyzer = new Standa

Re: 'Lock obtain timed out' even though NO locks exist...

2004-04-28 Thread Kevin A. Burton
Gus Kormeier wrote: Not sure if our installation is the same or not, but we are also using Tomcat. I had a similiar problem last week, it occurred after Tomcat went through a hard restart and some software errors had the website hammered. I found the lock file in /usr/local/tomcat/temp/ using loca

RE: 'Lock obtain timed out' even though NO locks exist...

2004-04-28 Thread Gus Kormeier
: 'Lock obtain timed out' even though NO locks exist... James Dunn wrote: >Which version of lucene are you using? In 1.2, I >believe the lock file was located in the index >directory itself. In 1.3, it's in your system's tmp >folder. > > Yes... 1.3 and I hav

Re: 'Lock obtain timed out' even though NO locks exist...

2004-04-28 Thread Kevin A. Burton
James Dunn wrote: Which version of lucene are you using? In 1.2, I believe the lock file was located in the index directory itself. In 1.3, it's in your system's tmp folder. Yes... 1.3 and I have a script that removes the locks from both dirs... This is only one process so it's just fine t

Re: 'Lock obtain timed out' even though NO locks exist...

2004-04-28 Thread Kevin A. Burton
allow Lucene to open this index with Lock obtain timed out. If I open it up from the console it works just fine. I'm only doing it with one index and a ulimit -n so it's not a files issue. Memory is 1G for Tomcat. If I figure this out will be sure to send a message to the list

Re: 'Lock obtain timed out' even though NO locks exist...

2004-04-28 Thread Kevin A. Burton
[EMAIL PROTECTED] wrote: It is possible that a previous operation on the index left the lock open. Leaving the IndexWriter or Reader open without closing them ( in a finally block ) could cause this. Actually this is exactly the problem... I ran some single index tests and a single process see

Re: 'Lock obtain timed out' even though NO locks exist...

2004-04-28 Thread James Dunn
ope this helps, Jim --- "Kevin A. Burton" <[EMAIL PROTECTED]> wrote: > I've noticed this really strange problem on one of > our boxes. It's > happened twice already. > > We have indexes where when Lucnes starts it says > 'Lock obtain timed out'

RE: 'Lock obtain timed out' even though NO locks exist...

2004-04-28 Thread ANarayan
To: Lucene Users List Subject: 'Lock obtain timed out' even though NO locks exist... I've noticed this really strange problem on one of our boxes. It's happened twice already. We have indexes where when Lucnes starts it says 'Lock obtain timed out' ... however NO

'Lock obtain timed out' even though NO locks exist...

2004-04-28 Thread Kevin A. Burton
I've noticed this really strange problem on one of our boxes. It's happened twice already. We have indexes where when Lucnes starts it says 'Lock obtain timed out' ... however NO locks exist for the directory. There are no other processes present and no locks in the in

RE: java.io.IOException: Lock obtain timed out

2004-03-15 Thread Gabe
> Below is my original code (which generate > Mjava.io.Exception: Lock obtain > timed out when an Exception is thrown) > > public static void index(File indexDir, List cList, > boolean ow) > throws Exception{ > IndexWriter writer = null; > try{ >

RE: java.io.IOException: Lock obtain timed out

2004-03-15 Thread Gabe
ck. > > Below is my original code (which generate > Mjava.io.Exception: Lock obtain > timed out when an Exception is thrown) > > public static void index(File indexDir, List cList, > boolean ow) > throws Exception{ > IndexWriter writer = null; > try{ >

RE: java.io.IOException: Lock obtain timed out

2004-03-15 Thread Nguyen, Tri (NIH/NLM/LHC)
Did you close your writer if an Exception occured? I had a similiar problem, but it was fixed when i close the writer in the finally block. Below is my original code (which generate Mjava.io.Exception: Lock obtain timed out when an Exception is thrown) public static void index(File indexDir

Re: java.io.IOException: Lock obtain timed out

2004-03-15 Thread Gabe
According to the logging, > this > > code is being called and the IndexReader is being > > closed. > > > > However, then I open a writer to add the document, > I > > get the following. > > > > java.io.IOException: Lock obtain timed out

Re: java.io.IOException: Lock obtain timed out

2004-03-15 Thread Otis Gospodnetic
being called and the IndexReader is being > closed. > > However, then I open a writer to add the document, I > get the following. > > java.io.IOException: Lock obtain timed out > at > org.apache.lucene.store.Lock.obtain(Lock.java:97) > at > org.apac

java.io.IOException: Lock obtain timed out

2004-03-15 Thread Gabe
ctory()); reader.close(); I put the first of the two lines in to try to force the lock to disable. According to the logging, this code is being called and the IndexReader is being closed. However, then I open a writer to add the document, I get the following. java.io.IOException: Lock obtain time

RE: Lock obtain timed out

2004-02-19 Thread Anand Stephen
> -Original Message- > From: Tatu Saloranta [mailto:[EMAIL PROTECTED] > Sent: Tuesday, December 16, 2003 7:23 AM > To: Lucene Users List > Subject: Re: Lock obtain timed out > > On Tuesday 16 December 2003 03:37, Hohwiller, Joerg wrote: > > Hi there, >

Error occurrence Lock obtain timed out

2004-01-19 Thread Pawan preet
I am using Lucene final.if i want to delete the documents from the index with IndexReader.delete(i) where i is doc. number in index.There will some problem occer during obtaining of lock as file could not create in obtain() method of FSDirectory.java and following error occur: "Lock o

Re: Lock obtain timed out

2003-12-16 Thread Tatu Saloranta
On Tuesday 16 December 2003 03:37, Hohwiller, Joerg wrote: > Hi there, > > I have not yet got any response about my problem. > > While debugging into the depth of lucene (really hard to read deep insde) I > discovered that it is possible to disable the Locks using a System > property. ... > Am I sa

RE: Lock obtain timed out

2003-12-16 Thread Hohwiller, Joerg
Hi there, thanks for your resonse guys! For the answers I got the info that I must not have an IndexWriter and an IndexReader open at the same time that both want to modify the index - even sequentially. What I have is the following: 1 Thread is working out events such as resource (file or fold

RE: Lock obtain timed out

2003-12-16 Thread David Townsend
close it at anytime? David -Original Message- From: Morus Walter [mailto:[EMAIL PROTECTED] Sent: 16 December 2003 11:08 To: Lucene Users List Subject: Re: Lock obtain timed out Hohwiller, Joerg writes: > > Am I safe disabling the locking??? No. > Can anybody tell m

Re: Lock obtain timed out

2003-12-16 Thread Morus Walter
Hohwiller, Joerg writes: > > Am I safe disabling the locking??? No. > Can anybody tell me where to get documentation about the Locking > strategy (I still would like to know why I have that problem) ??? > I guess -- but given your input I really have to guess; the source you wanted to attach di

RE: Lock obtain timed out

2003-12-16 Thread MOYSE Gilles (Cetelem)
mardi 16 décembre 2003 11:37 À : [EMAIL PROTECTED] Objet : Lock obtain timed out Hi there, I have not yet got any response about my problem. While debugging into the depth of lucene (really hard to read deep insde) I discovered that it is possible to disable the Locks using a System property. W

Lock obtain timed out

2003-12-16 Thread Hohwiller, Joerg
Hi there, I have not yet got any response about my problem. While debugging into the depth of lucene (really hard to read deep insde) I discovered that it is possible to disable the Locks using a System property. When I start my application with -DdisableLuceneLocks=true, I do not get the erro

Problems deleting documents from the index (Lock obtain timed out)

2003-12-15 Thread Hohwiller, Joerg
the index by a special field (in my case the URI), I get a IOException with the message "Lock obtain timed out". I tried lucene 1.3-rc1, 1.3-rc2 and 1.3-rc3 all with the same result. Any suggestions would be very welcome :) Thank you so far Jörg Hohwiller BTW: I attatched the relev