Re: DELETEREPLICA command shouldn't delete de last replica of a shard

2015-11-09 Thread Yago Riveiro
I raised a JIRA with this, SOLR-8257



-
Best regards
--
View this message in context: 
http://lucene.472066.n3.nabble.com/DELETEREPLICA-command-shouldn-t-delete-de-last-replica-of-a-shard-tp4239054p4239139.html
Sent from the Solr - User mailing list archive at Nabble.com.


DELETEREPLICA command shouldn't delete de last replica of a shard

2015-11-08 Thread Yago Riveiro
I don't know if this behaviour makes sense but in my IMHO the last replica of
a shard should be removed only by the DELETESHARD command ...

If you don't not notice about this behaviour, the result is the deletion of
the whole shard, and as a consequence, the deletion of the shard in the
clusterstate.json ... with all the pain associated.



-
Best regards
--
View this message in context: 
http://lucene.472066.n3.nabble.com/DELETEREPLICA-command-shouldn-t-delete-de-last-replica-of-a-shard-tp4239054.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: DELETEREPLICA command shouldn't delete de last replica of a shard

2015-11-08 Thread Ishan Chattopadhyaya
On Sun, Nov 8, 2015 at 11:20 PM, Erick Erickson 
wrote:

> I see your point. In the custom routing case where it _is_ reasonable
> to delete all replicas in a shard, DELETESHARD does the trick.
>
> It's reasonable to raise a JIRA I think so we have a record of the
> discussion/decision.
>

There is a related, but maybe not exactly same, JIRA:
https://issues.apache.org/jira/browse/SOLR-5209


>
> Erick
>
> On Sun, Nov 8, 2015 at 9:13 AM, Yago Riveiro 
> wrote:
> > I don't know if this behaviour makes sense but in my IMHO the last
> replica of
> > a shard should be removed only by the DELETESHARD command ...
> >
> > If you don't not notice about this behaviour, the result is the deletion
> of
> > the whole shard, and as a consequence, the deletion of the shard in the
> > clusterstate.json ... with all the pain associated.
> >
> >
> >
> > -
> > Best regards
> > --
> > View this message in context:
> http://lucene.472066.n3.nabble.com/DELETEREPLICA-command-shouldn-t-delete-de-last-replica-of-a-shard-tp4239054.html
> > Sent from the Solr - User mailing list archive at Nabble.com.
>


Re: DELETEREPLICA command shouldn't delete de last replica of a shard

2015-11-08 Thread Erick Erickson
I see your point. In the custom routing case where it _is_ reasonable
to delete all replicas in a shard, DELETESHARD does the trick.

It's reasonable to raise a JIRA I think so we have a record of the
discussion/decision.

Erick

On Sun, Nov 8, 2015 at 9:13 AM, Yago Riveiro  wrote:
> I don't know if this behaviour makes sense but in my IMHO the last replica of
> a shard should be removed only by the DELETESHARD command ...
>
> If you don't not notice about this behaviour, the result is the deletion of
> the whole shard, and as a consequence, the deletion of the shard in the
> clusterstate.json ... with all the pain associated.
>
>
>
> -
> Best regards
> --
> View this message in context: 
> http://lucene.472066.n3.nabble.com/DELETEREPLICA-command-shouldn-t-delete-de-last-replica-of-a-shard-tp4239054.html
> Sent from the Solr - User mailing list archive at Nabble.com.