lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Raymond Wiker <rwi...@gmail.com>
Subject Re: What Happens to Consistency if I kill a Leader and Startup it again?
Date Thu, 02 May 2013 12:30:49 GMT
If you're using zookeeper, this should not be allowed to happen (I think).


On Thu, May 2, 2013 at 2:12 PM, Furkan KAMACI <furkankamaci@gmail.com>wrote:

> Thanks for the answer. This is what I try to say:
>
> time = t
> Node A (Leader):  version is 100
> Node B (Replica): version is 90
>
> time = t+1
> Node A (Killing):  version is 100 and killed
> Node B (Replica): version is 90
>
> time = t+2
> Node A (Killed):  version is 100 and killed
> Node B (Become Leader): version is 95 (we indexed something)
>
> time = t+3
> Node A (Started as Replica):  version is 100 and live
> Node B (Leader): version is 95
>
> so I think that leader will behind replica. Is there anything different for
> such scenario?
>
>
>
> 2013/5/2 Otis Gospodnetic <otis.gospodnetic@gmail.com>
>
> > The leader would not be behind replica because the old leader would not
> > come back and take over the leader role. It would ne just a replica and
> it
> > would replicate the index from whichever node is the leader.
> >
> > Otis
> > Solr & ElasticSearch Support
> > http://sematext.com/
> > On Apr 29, 2013 5:31 PM, "Furkan KAMACI" <furkankamaci@gmail.com> wrote:
> >
> > > I think about such situation:
> > >
> > > Let's assume that I am indexing at my SolrCloud. My leader has a
> version
> > of
> > > higher than replica as well (I have one leader and one replica for each
> > > shard). If I kill leader, replica will be leader as well. When I
> startup
> > > old leader again it will be a replica for my shard.
> > >
> > > However I think that leader will have less document than replica and a
> > less
> > > version than replica. Does it cause a problem because of leader is
> behing
> > > of replica?
> > >
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message