lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Noll <dan...@nuix.com>
Subject Re: Clearing locks
Date Sun, 04 Mar 2007 22:36:31 GMT
MC Moisei wrote:
> Is there a easy way to clear locks ?
> 
> If I redeploy my war file and it happens that there is an indexing
> happening the lock is not cleared. I know I can tell JVM to run the
> finalizers before it exits but in this case the JVM is not exiting being
> a hot deploy.
> 
> Any ideas ?

Runtime.getRuntime().addShutdownHook(new Thread() { ... }) ?

That's supposed to be run at any time the JVM shuts down normally.  I 
doubt it runs in the event of a segfault or similar, but it might help.

Daniel

-- 
Daniel Noll

Nuix Pty Ltd
Suite 79, 89 Jones St, Ultimo NSW 2007, Australia    Ph: +61 2 9280 0699
Web: http://nuix.com/                               Fax: +61 2 9212 6902

This message is intended only for the named recipient. If you are not
the intended recipient you are notified that disclosing, copying,
distributing or taking any action in reliance on the contents of this
message or attachment is strictly prohibited.

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


Mime
View raw message