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 zhenyuan wei <ti...@gmail.com> on 2019/01/22 09:16:15 UTC

The parent shard will never be delete/clean?

Hi,
   If I split shard1 to shard1_0,shard1_1, Is the parent shard1 will
never be clean up?


Best,
Tinswzy

Re: The parent shard will never be delete/clean?

Posted by zhenyuan wei <ti...@gmail.com>.
That is Cool~ , I'll try it. Thanks !



Andrzej Białecki <an...@lucidworks.com> 于2019年1月23日周三 下午8:53写道:

> Solr 7.4.0 added a periodic maintenance task that cleans up old inactive
> parent shards left after the split. “Old” means 2 days by default.
>
> > On 22 Jan 2019, at 15:31, Jason Gerlowski <ge...@gmail.com> wrote:
> >
> > Hi,
> >
> > You might want to check out the documentation, which goes over
> > split-shard in a bit more detail:
> >
> https://lucene.apache.org/solr/guide/7_6/collections-api.html#CollectionsAPI-splitshard
> >
> > To answer your question directly though, no.  Split-shard creates two
> > new subshards, but it doesn't do anything to remove or cleanup the
> > original shard.  The original shard remains with its data and will
> > delegate future requests to the result shards.
> >
> > Hope that helps,
> >
> > Jason
> >
> > On Tue, Jan 22, 2019 at 4:17 AM zhenyuan wei <ti...@gmail.com> wrote:
> >>
> >> Hi,
> >>   If I split shard1 to shard1_0,shard1_1, Is the parent shard1 will
> >> never be clean up?
> >>
> >>
> >> Best,
> >> Tinswzy
> >
>
>

Re: The parent shard will never be delete/clean?

Posted by Andrzej Białecki <an...@lucidworks.com>.
Solr 7.4.0 added a periodic maintenance task that cleans up old inactive parent shards left after the split. “Old” means 2 days by default.

> On 22 Jan 2019, at 15:31, Jason Gerlowski <ge...@gmail.com> wrote:
> 
> Hi,
> 
> You might want to check out the documentation, which goes over
> split-shard in a bit more detail:
> https://lucene.apache.org/solr/guide/7_6/collections-api.html#CollectionsAPI-splitshard
> 
> To answer your question directly though, no.  Split-shard creates two
> new subshards, but it doesn't do anything to remove or cleanup the
> original shard.  The original shard remains with its data and will
> delegate future requests to the result shards.
> 
> Hope that helps,
> 
> Jason
> 
> On Tue, Jan 22, 2019 at 4:17 AM zhenyuan wei <ti...@gmail.com> wrote:
>> 
>> Hi,
>>   If I split shard1 to shard1_0,shard1_1, Is the parent shard1 will
>> never be clean up?
>> 
>> 
>> Best,
>> Tinswzy
> 


Re: The parent shard will never be delete/clean?

Posted by Jason Gerlowski <ge...@gmail.com>.
Hi,

You might want to check out the documentation, which goes over
split-shard in a bit more detail:
https://lucene.apache.org/solr/guide/7_6/collections-api.html#CollectionsAPI-splitshard

To answer your question directly though, no.  Split-shard creates two
new subshards, but it doesn't do anything to remove or cleanup the
original shard.  The original shard remains with its data and will
delegate future requests to the result shards.

Hope that helps,

Jason

On Tue, Jan 22, 2019 at 4:17 AM zhenyuan wei <ti...@gmail.com> wrote:
>
> Hi,
>    If I split shard1 to shard1_0,shard1_1, Is the parent shard1 will
> never be clean up?
>
>
> Best,
> Tinswzy