Re: IndexSearcher - open file handles by deleted files

2010-05-27 Thread Michael McCandless
Just closing IndexSearcher should be enough. Are you really sure you're closing all IndexSearchers you've opened? Hmm the code looks somewhat dangerous. Why sleep for 10 seconds before closing? Is this to ensure any in-flight queries finish? It's better to explicitly track this (eg w/ IndexRea

IndexSearcher - open file handles by deleted files

2010-05-26 Thread Thomas Rewig
Hello, I use Lucene 2.9.1 with two indices, which alternate each day. One is live, the other is erased and renewed with the latest data. The problem is that the index files will be deleted, but the file handles are still available. If the program (JBOSS) is not restarted for some time, the dis