lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Per Steffensen <>
Subject Re: Commit (hard) at shutdown?
Date Mon, 23 May 2016 20:32:06 GMT
Sorry, I did not see the responses here because I found out myself. I 
definitely seems like a hard commit it performed when shutting down 
gracefully. The info I got from production was wrong.
It is not necessarily obvious that you will loose data on "kill -9". The 
tlog ought to save you, but it probably not 100% bulletproof.
We are not using the bin/solr script (yet)

On 21/05/16 04:02, Shawn Heisey wrote:
> On 5/20/2016 2:51 PM, Jon Drews wrote:
>> I would be interested in an answer to this question.
>>  From my research it looks like it will do a hard commit if cleanly shut
>> down. However if you "kill -9" it you'll loose data (obviously). Perhaps
>> production isn't cleanly shutting down solr?
> I do not know whether a graceful shutdown does a hard commit or not.
> I do know that all versions of Solr that utilize the bin/solr script are
> configured by default to forcibly kill Solr only five seconds after the
> graceful shutdown is requested.  Five seconds is usually not enough time
> for production installs, so it needs to be increased.  The only way to
> do this currently is to edit the bin/solr script directly.
> Thanks,
> Shawn

View raw message