lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doron Cohen <cdor...@gmail.com>
Subject Re: Urgent! Forgot to close IndexWriter after adding Documents to the index.
Date Wed, 23 Mar 2011 04:41:26 GMT
Hi,


> I don't know
> enough about finer points of shutdown hooks to comment on the distinctio,
> but my off the cuff assumption is that a shutdown hook would be a bad idea
> ... in a long running program wouldn't thta keep the IndexWriter
> from being GCed until shutdown?
>

Could be, haven't use them either...
...If IW.close() calls RT.removeShutdownHook() I think this should work.

Doron

Mime
View raw message