lucene-dev mailing list archives

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

> 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.


View raw message