Hmmm, depends on how you stop the server, I was
assuming you did something radical like 'kill -9' (for SHAME <G>)
or the machine crashed or something else horrible...

Koji was covering graceful shutdown, thanks Koji! I hadn't
even considered that....

Erick

On Wed, Apr 6, 2011 at 7:19 PM, Robert Petersen <rober...@buy.com> wrote:

> Really?  Great!  I was wondering if there was some cleanup cycle like
> that which would occur upon shutdown.  That sounds like much more
> logical behavior!
>
> -----Original Message-----
> From: Koji Sekiguchi [mailto:k...@r.email.ne.jp]
> Sent: Wednesday, April 06, 2011 4:03 PM
> To: solr-user@lucene.apache.org
> Subject: Re: what happens to docsPending if stop solr before commit
>
> (11/04/06 5:25), Robert Petersen wrote:
> > I tried to find the answer to this simple question online, but failed.
> > I was wondering about this, what happens to uncommitted docsPending if
> I
> > stop solr and then restart solr?  Are they lost?  Are they still there
> > but still uncommitted?  Do they get committed at startup?  I noticed
> > after a restart my 250K pending doc count went to 0 is what got me
> > wondering.
>
> Robi,
>
> Usually they are never lost, but they are committed.
>
> When you stop Solr, servlet container (Jetty) calls servlets/filters
> destroy() methods. This causes closing all SolrCores. Then
> SolrCore.close()
> calls UpdateHandler.close(). It calls SolrIndexWriter.close(). Then
> pending docs are flushed, then committed.
>
> Koji
> --
> http://www.rondhuit.com/en/
>

Reply via email to