lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Otis Gospodnetic <otis_gospodne...@yahoo.com>
Subject Re: which lock belong to which index?
Date Thu, 02 Oct 2003 11:56:13 GMT
I cannot remember the answer I got, but I asked the same question after
the code was changed to put locks in java.io.tmpdir.
Because I have an application that deals with a lot of indices
simultaneously, I felt like this will make things more difficult in
cases where you have stale locks, etc.
Try the archive, though, as I seem to recall that somebody, Doug or
Scott gave me the answer.

Otis


--- petite_abeille <petite_abeille@mac.com> wrote:
> Hello,
> 
> 10/01 11:25:41 (Warning) IndexWriter.<init>: java.io.IOException:
> Index  
> locked for write:  
> Lock@C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\lucene- 
> 08d0626209019ccc9327ba6fb063c456-write.lock
> 
> Is there a straightforward way to figure out which lock belong to
> which  
> index? The lock name seems to be a MD5 digest of the index's
> directory  
> canonical path (or at least this is what getLockPrefix() looks like).
> 
> Previously, the locks where located alongside the indices... so it
> was  
> pretty trivial to know which lock belong to which index... but now
> that  
> they are all dumped into java.io.tmpdir this is getting cumbersome...
>  
> why the move to tmpdir in the first place? This seems to be a very  
> gratuitous change, which only complicate things without providing any
>  
> obvious value...
> 
> Or perhaps I'm missing something?
> 
> Cheers,
> 
> PA.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: lucene-user-help@jakarta.apache.org
> 


__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

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


Mime
View raw message