You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Brendan Grainger <br...@gmail.com> on 2011/11/09 22:35:25 UTC

Anyway to stop an optimize?

Hi,

Does anyone know if an optimize can be stopped once started?

Thanks

Re: Anyway to stop an optimize?

Posted by Otis Gospodnetic <ot...@yahoo.com>.
This is correct.
And there is no way I can think of optimize could just start on its own - somebody or something called it.

Otis
----

Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch
Lucene ecosystem search :: http://search-lucene.com/


>________________________________
>From: Walter Underwood <wu...@wunderwood.org>
>To: solr-user@lucene.apache.org
>Sent: Wednesday, November 9, 2011 11:38 PM
>Subject: Re: Anyway to stop an optimize?
>
>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 <br...@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
>>>>> 
>>>>> 
>>> 
>
>
>
>
>
>
>

Re: Anyway to stop an optimize?

Posted by Walter Underwood <wu...@wunderwood.org>.
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 <br...@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
>>>> 
>>>> 
>> 





Re: Anyway to stop an optimize?

Posted by Brendan Grainger <br...@gmail.com>.
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 <br...@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
>>> 
>>> 
> 
> 
> 
> 


Re: Anyway to stop an optimize?

Posted by Walter Underwood <wu...@wunderwood.org>.
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 <br...@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
>> 
>> 





Re: Anyway to stop an optimize?

Posted by Otis Gospodnetic <ot...@yahoo.com>.
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 <br...@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
>
>
>