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 KNitin <ni...@gmail.com> on 2014/03/06 17:50:48 UTC

Race condition in Leader Election

Hi

 When restarting a node in solrcloud, i run into scenarios where both the
replicas for a shard get into "recovering" state and never come up causing
the error "No servers hosting this shard". To fix this, I either unload one
core or restart one of the nodes again so that one of them becomes the
leader.

Is there a way to "force" leader election for a shard for solrcloud? Is
there a way to break ties automatically (without restarting nodes) to make
a node as the leader for the shard?


Thanks
Nitin

Re: Race condition in Leader Election

Posted by KNitin <ni...@gmail.com>.
I am using 4.3.1.


On Thu, Mar 6, 2014 at 11:48 AM, Mark Miller <ma...@gmail.com> wrote:

> Are you using an old version?
>
> - Mark
>
> http://about.me/markrmiller
>
> On Mar 6, 2014, at 11:50 AM, KNitin <ni...@gmail.com> wrote:
>
> > Hi
> >
> > When restarting a node in solrcloud, i run into scenarios where both the
> > replicas for a shard get into "recovering" state and never come up
> causing
> > the error "No servers hosting this shard". To fix this, I either unload
> one
> > core or restart one of the nodes again so that one of them becomes the
> > leader.
> >
> > Is there a way to "force" leader election for a shard for solrcloud? Is
> > there a way to break ties automatically (without restarting nodes) to
> make
> > a node as the leader for the shard?
> >
> >
> > Thanks
> > Nitin
>
>

Re: Race condition in Leader Election

Posted by Mark Miller <ma...@gmail.com>.
Are you using an old version?

- Mark

http://about.me/markrmiller

On Mar 6, 2014, at 11:50 AM, KNitin <ni...@gmail.com> wrote:

> Hi
> 
> When restarting a node in solrcloud, i run into scenarios where both the
> replicas for a shard get into "recovering" state and never come up causing
> the error "No servers hosting this shard". To fix this, I either unload one
> core or restart one of the nodes again so that one of them becomes the
> leader.
> 
> Is there a way to "force" leader election for a shard for solrcloud? Is
> there a way to break ties automatically (without restarting nodes) to make
> a node as the leader for the shard?
> 
> 
> Thanks
> Nitin