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:[email protected]]
Sent: August-19-09 1:53 PM
To: [email protected]
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:[email protected]]
Sent: August-19-09 11:39 AM
To: [email protected]
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. <[email protected]>
> Does anyone know a graceful way to shutdown Solr? (other than killing
> the process with Ctrl-C)
>