From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Fri, 8 Jun 2018 20:51:37 +0300 From: Konstantin Osipov Subject: Re: [PATCH v2 01/11] box: retrieve instance uuid before starting local recovery Message-ID: <20180608175137.GC6436@chai> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: To: Vladimir Davydov Cc: tarantool-patches@freelists.org List-ID: * Vladimir Davydov [18/06/08 20:38]: > In order to find out if the current instance fell too much behind its > peers in the cluster and so needs to be rebootstrapped, we need to > connect it to remote peers before proceeding to local recovery. The > problem is box.cfg.replication may have an entry corresponding to the > instance itself so before connecting we have to start listening to > incoming connections. Since an instance is supposed to sent its uuid in > the greeting message, we also have to initialize INSTANCE_UUID early, > before we start local recovery. So this patch makes memtx engine > constructor not only scan the snapshot directory, but also read the > header of the most recent snapshot to initialize INSTANCE_UUID. Pushed. -- Konstantin Osipov, Moscow, Russia, +7 903 626 22 32 http://tarantool.io - www.twitter.com/kostja_osipov