[PATCH v2 05/11] box: connect to remote peers before starting local recovery

Konstantin Osipov kostja at tarantool.org
Thu Jun 14 15:59:48 MSK 2018


* Vladimir Davydov <vdavydov.dev at gmail.com> [18/06/14 11:38]:
> On Wed, Jun 13, 2018 at 11:45:45PM +0300, Konstantin Osipov wrote:
> > * Vladimir Davydov <vdavydov.dev at gmail.com> [18/06/08 20:38]:
> > > box_sync_replication() can now be called before recovery, right after
> > > box_listen(). This is a step toward detecting if the instance fell too
> > > much behind its peers in the cluster and so needs to be rebootstrapped.
> > 
> > Shouldn't you move setting of the orphan status to someplace
> > before box_sync_replication()?
> 
> I don't think it's necessary - the instance is in 'loading' state at
> that time, because it hasn't read xlogs yet. Let's think of 'orphan'
> state as 'recovery complete, but the instance is still syncing'?

OK, I see.
-- 
Konstantin Osipov, Moscow, Russia, +7 903 626 22 32
http://tarantool.io - www.twitter.com/kostja_osipov



More information about the Tarantool-patches mailing list