lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Armbrust, Daniel C." <Armbrust.Dan...@mayo.edu>
Subject RE: Removing a write.lock file
Date Fri, 19 Apr 2002 18:06:47 GMT
Since I am far from a lucene expert, I would suggest searching the archive
for write.lock, I'm sure this has been discussed before.

My belief is that when you call the close method to close your index writer,
it removes the write.lock file.  

Someone please verify/correct me if I'm wrong.




-----Original Message-----
From: Biswas, Goutam_Kumar [mailto:Goutam-Kumar-Biswas@deshaw.com]
Sent: Friday, April 19, 2002 1:25 AM
To: 'Lucene Users List'
Subject: RE: Removing a write.lock file


Then how am I supposed to deal with the write.lock file ?

-----Original Message-----
From: Armbrust, Daniel C. [mailto:Armbrust.Daniel@mayo.edu]
Sent: Thursday, April 18, 2002 9:05 PM
To: 'Lucene Users List'
Subject: RE: Removing a write.lock file


If your not letting lucene remove the write.lock file, and doing it with
your own code, that just screams out to me to be a very bad thing to do.

Unless of course you want things to get corrupted.

Maybe it has worked for you so far, out of luck, but I'm sure its not the
way you are supposed to be doing things.






-----Original Message-----
From: Biswas, Goutam_Kumar [mailto:Goutam-Kumar-Biswas@deshaw.com]
Sent: Thursday, April 18, 2002 10:25 AM
To: 'Lucene Users List'
Subject: RE: Removing a write.lock file


I'm not removing the write.lock file by hand. I'm doing it inside the code
before opening the index
-Goutam


-----Original Message-----
From: Aruna Raghavan [mailto:ArunaR@opin.com]
Sent: Thursday, April 18, 2002 8:37 PM
To: 'Lucene Users List'
Subject: RE: Removing a write.lock file


I don't think it is a good approach to delete the write.lock file by hand.
It is there for a reason. You may want to dig into some of the older
dialogs/e-mails on this topic.

-----Original Message-----
From: Biswas, Goutam_Kumar [mailto:Goutam-Kumar-Biswas@deshaw.com]
Sent: Thursday, April 18, 2002 9:53 AM
To: 'Lucene Users List'
Subject: RE: Removing a write.lock file


well suneetha,

   before I write to the index I check whether a write.lock file exists! If
it does I delete it before opening the index. It works fine
for me. 

-Goutam

-----Original Message-----
From: Aruna Raghavan [mailto:ArunaR@opin.com]
Sent: Thursday, April 18, 2002 8:22 PM
To: 'Lucene Users List'
Subject: RE: Removing a write.lock file



Hi,
The write.lock file won't be there if you close the index using a lock
mechanism. I use my own RWLock to access the index dir and unlock it after I
close the index. Basically, the access to the index is synchronized. I have
never had any problems with this approach.
Aruna.
-----Original Message-----
From: suneethad [mailto:suneethad@india.adventnet.com]
Sent: Wednesday, April 17, 2002 11:47 PM
To: Lucene Users List
Subject: Removing a write.lock file


Hi,
        I'm currently indexing allowing  multiple access , I find that a
write.lock file has got created.
I know this is to prevent  multiple writers, but now how do I
continue.??I  do not want to reindex as I work on a very large database
and it takes a real long time How do I remove this lock file ??

Thanx 4 ur help,
Suneetha.



--
To unsubscribe, e-mail:
<mailto:lucene-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:lucene-user-help@jakarta.apache.org>

--
To unsubscribe, e-mail:
<mailto:lucene-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:lucene-user-help@jakarta.apache.org>

--
To unsubscribe, e-mail:
<mailto:lucene-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:lucene-user-help@jakarta.apache.org>

--
To unsubscribe, e-mail:
<mailto:lucene-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:lucene-user-help@jakarta.apache.org>

--
To unsubscribe, e-mail:
<mailto:lucene-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:lucene-user-help@jakarta.apache.org>

--
To unsubscribe, e-mail:
<mailto:lucene-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:lucene-user-help@jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:lucene-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-user-help@jakarta.apache.org>


Mime
View raw message