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

Vladimir Davydov vdavydov.dev at gmail.com
Thu Jun 14 11:34:25 MSK 2018


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'?



More information about the Tarantool-patches mailing list