SolrDispatchFilter has it: public void destroy() { if (cores != null) { cores.shutdown(); cores = null; } }
It should gracefully shutdown all background threads (used by Lucene index-merge etc) Tomcat: catalina.sh stop, shutdown.sh, etc.; Ctrl-C is not graceful -----Original Message----- From: Fuad Efendi [mailto:f...@efendi.ca] Sent: August-19-09 1:53 PM To: solr-user@lucene.apache.org Subject: RE: Shutdown Solr catalina.sh stop But SolrServlet catches everything and forgets to implement destroy()! I am absolutely unsure about Ctrl-C and even have many concerns regarding catalina.sh stop... J2EE/JEE does not specify any support for threads outside than container-managed... I hope SolrServlet closes Lucene index (and other resources) and everything follows Servlet specs... but I can't find dummies' method _"destroy()"_ in SolrServlet!!! It shold gracefully close Lucene index and other resources. WHY? -----Original Message----- From: Tobias Brennecke [mailto:t.bu...@gmail.com] Sent: August-19-09 11:39 AM To: solr-user@lucene.apache.org Subject: Re: Shutdown Solr it catches the kill signal and shuts down as it should, I guess :) because it writes stuff to the log after pressing ^c 2009/8/19 Miller, Michael P. <m.mil...@radium.ncsc.mil> > Does anyone know a graceful way to shutdown Solr? (other than killing > the process with Ctrl-C) >