A restart during an optimize should not cause index corruption. The optimize 
only reads existing indexes, and the only writes are to indexes not yet in use. 
If it does not finish, those half-written indexes are junk to be cleaned up 
later.

wunder

On Nov 9, 2011, at 8:16 PM, Brendan Grainger wrote:

> I think in the past I've tried that, and it has restarted, although I will 
> have to try it out (this time we were loath to stop it as we didn't want any 
> index corruption issues). 
> 
> A related question is, why did the optimize start? I thought it had to be 
> explicitly started, but somehow it started optimzing on it's own.
> 
> Thanks again
> Brendan
> 
> On Nov 9, 2011, at 10:44 PM, Walter Underwood wrote:
> 
>> If you restart the server, the optimize should stop and not restart, right?
>> 
>> wunder
>> 
>> On Nov 9, 2011, at 7:43 PM, Otis Gospodnetic wrote:
>> 
>>> Don't think so, at least not gracefully.  You can always do partial 
>>> optimize and do a few of them if you want to optimize in smaller steps.
>>> 
>>> Otis
>>> 
>>> 
>>>> ________________________________
>>>> From: Brendan Grainger <brendan.grain...@gmail.com>
>>>> To: solr-user@lucene.apache.org
>>>> Sent: Wednesday, November 9, 2011 4:35 PM
>>>> Subject: Anyway to stop an optimize?
>>>> 
>>>> Hi,
>>>> 
>>>> Does anyone know if an optimize can be stopped once started?
>>>> 
>>>> Thanks
>>>> 
>>>> 
>> 




Reply via email to