I have noticed that the first time I execute full import (having an old index
in the index folder) once it is done, the old indexsearcher will be closed:

2009-03-12 13:05:06,200 [pool-7-thread-1] INFO 
org.apache.solr.core.SolrCore - [core_01] Registered new searcher
searc...@c6692 main
2009-03-12 13:05:06,200 [pool-7-thread-1] INFO 
org.apache.solr.search.SolrIndexSearcher - Closing searc...@1c5cd7

The problem is that if I do another full-import... the old searcher will not
be closed, there will just appear the line:
2009-03-12 13:05:06,200 [pool-7-thread-1] INFO 
org.apache.solr.core.SolrCore - [core_01] Registered new searcher
searc...@c6692 main

If I keep doing full-imports the ols searchers will never be closed. seems
that they are just closed in the first full import...
Does it mean something to anyone?


Marc Sturlese wrote:
> 
> The old IndexSearcher is beeing closed correctly:
> 
> 2009-03-12 13:05:06,200 [pool-7-thread-1] INFO 
> org.apache.solr.core.SolrCore - [core_01] Registered new searcher
> searc...@c6692 main
> 2009-03-12 13:05:06,200 [pool-7-thread-1] INFO 
> org.apache.solr.search.SolrIndexSearcher - Closing searc...@1c5cd7 
> 
> main
> 
> hossman wrote:
>> 
>> 
>> : If the problem is not there the other thing that comes to my mind is
>> : lucene2.9-dev... maybe there's a problem closing indexWriter?...
>> opiously
>> : it's just a thought.
>> 
>> you never answered yoniks question about wether you see any "Closing 
>> Searcher" messagges in your log, also it's useful to know what you see in 
>> the CORE section when you look at stats.jsp ... typically the "main" 
>> searcher is listed there twice, but during warming you'll see the old 
>> searcher as well ... if older searchers aren't getting closed for some 
>> reason, they should be listed there.
>> 
>> i'd start by confirming/ruling out hte old searchers before speculating 
>> about the indexwriter or other problems.
>> 
>> : > On a quiet system, you should see the original searcher closed right
>> : > after the new searcher is registered.
>> : > 
>> : > Example:
>> : > Mar 11, 2009 2:22:25 PM org.apache.solr.core.SolrCore
>> registerSearcher
>> : > INFO: [] Registered new searcher searc...@1f1cbf6 main
>> : > Mar 11, 2009 2:22:25 PM org.apache.solr.search.SolrIndexSearcher
>> close
>> : > INFO: Closing searc...@acdd02 main
>> 
>> 
>> 
>> -Hoss
>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Tomcat-holding-deleted-snapshots-until-it%27s-restarted-tp22451252p22478204.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to