On Fri, Mar 13, 2009 at 1:00 PM, Marc Sturlese <marc.sturl...@gmail.com> wrote: > > Ok, I will open a bug issue now. > >> Forcing it to close at the point you did is unsafe since other threads >> may still be using that searcher. > > Can you give me an example where other threads would be using that searcher?
Any searches that started before the new searcher was registered will still be using the old searcher. Thread A starts executing a search request with Searcher1 Thread B issues a "commit" - close the writer - open Searcher2 - register Searcher2 (and decrement Searcher1 ref count) Thread B finishes Thread A finishes (decrement Searcher1 ref count) -Yonik http://www.lucidimagination.com