From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from [87.239.111.99] (localhost [127.0.0.1]) by dev.tarantool.org (Postfix) with ESMTP id 7EAD46EC55; Tue, 20 Jul 2021 11:18:21 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 7EAD46EC55 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1626769101; bh=DI6MlT/+Rm2KLHJ3imWKRPmOYcgeeEZ11A0aifz6jLw=; h=Date:To:References:In-Reply-To:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=hGzgLJmQ6TwNMcqhJbV+L2WlRQHkPhvRdn1tNsWr4/5G8TManlYIJg55oxNPaPBIl 6bJZ3XvxoblIxEdEWSYtOsBJ3GHvUI9kQR3OCYHpr64lB9aFN7qSF1kFWI9hj4DpXl ABT2VsHPVczLdT+lc9iNFrUlGE+LvHPdPnbhAcEM= Received: from mail-lj1-f177.google.com (mail-lj1-f177.google.com [209.85.208.177]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id ACC986EC55 for ; Tue, 20 Jul 2021 11:18:20 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org ACC986EC55 Received: by mail-lj1-f177.google.com with SMTP id h4so28753701ljo.6 for ; Tue, 20 Jul 2021 01:18:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=c651rerl+/SlT3lKBpfTtF0nFIOxeE8vMvzK9m9PmME=; b=JqQel/OMaolE5NtZBzsoDfOMd2425O6FFps+lPlUPO3k94yo4T1eD4vsu9u8dlWhbZ Hmnu8EBx0zkJI2jPhafPF2Y1blL+9kaLOx30Pp3tRexHM3/H4q/XcY/KswS4OGzQYUep fTxkJx75l4B8AFc9UMY686TqENnZvA6X8DSkcE8SOavVUFCWc9vA4qNDug8K6qihdlh5 isAE50ewaUB44bhskdOwAKW8tyvlpVEDBin9dXQ4Q8Kf16/HGWux5ziAQy2Hk/tyiLFe DeGk1fMz8dJS0uEEnnjUbOcuZS3dtxBx8dgQwUL7qNgkzhOkT6UTC26miUxKUe0ixj/l fAJQ== X-Gm-Message-State: AOAM530dotuR164nBxyJd9omRElu/yXojxWGx0m7z7eKeOFPbiPzCsa4 igX+3cUk9yQ17TtJUKam/YEg7CaQkBs= X-Google-Smtp-Source: ABdhPJzUGr7skJwG2vRrbN4/vUjmyYMqY4yr7t7EwjGa/y6Pr6yvmsXRgFAkqNrUGuJkF04rbqDoMg== X-Received: by 2002:a2e:9c41:: with SMTP id t1mr18874042ljj.415.1626769099458; Tue, 20 Jul 2021 01:18:19 -0700 (PDT) Received: from grain.localdomain ([5.18.255.97]) by smtp.gmail.com with ESMTPSA id g12sm2369978lja.13.2021.07.20.01.18.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Jul 2021 01:18:18 -0700 (PDT) Received: by grain.localdomain (Postfix, from userid 1000) id 873D95A001E; Tue, 20 Jul 2021 11:18:17 +0300 (MSK) Date: Tue, 20 Jul 2021 11:18:17 +0300 To: Vladislav Shpilevoy Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/2.0.7 (2021-05-04) Subject: Re: [Tarantool-patches] [PATCH v2 0/5] Bootstrap voter X-BeenThere: tarantool-patches@dev.tarantool.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Cyrill Gorcunov via Tarantool-patches Reply-To: Cyrill Gorcunov Cc: tarantool-patches@dev.tarantool.org Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" On Sun, Jul 18, 2021 at 06:53:24PM +0200, Vladislav Shpilevoy wrote: > Changes in v2: > - Moved 'manual' election mode fix into a separate commit; > - Replaced raft_start/stop_candidate() with raft_promote/restore(); > - Renamed ballot.can_be_leader to ballot.can_lead. > > Branch: http://github.com/tarantool/tarantool/tree/gerold103/gh-6018-boot-voter > Issue: https://github.com/tarantool/tarantool/issues/6018 > > Vladislav Shpilevoy (5): > replication: introduce ballot.can_lead > box: save box_raft() into a variable > raft: replace raft_start_candidate with _promote > election: during bootstrap prefer candidates > election: promote 'manual' bootstrap master Looks ok to me, Ack!