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 DB8DE6FC8F; Thu, 25 Mar 2021 23:19:46 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org DB8DE6FC8F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1616703586; bh=pMveGcxrg3fzQwBdJ7RMWz8MEuMkOdt8MM867jqfGro=; 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=GWDdjZCyDE3SUbG6wEFuYVfj30QjhyhvbqFdQdEUb38Abvhdb+3wPjKNt2KLVrkqj yP68J9ZEGlwxk8E4q+GIs1659GwM4V6VbWvzIlyStxwoKBvT28SgzFT2+CAX6oDrGM 5CsOhZrXDQmSUyOC2sPouWtyac2sNNsp6igkgO/o= Received: from mail-lf1-f46.google.com (mail-lf1-f46.google.com [209.85.167.46]) (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 CB8176FC8F for ; Thu, 25 Mar 2021 23:19:45 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org CB8176FC8F Received: by mail-lf1-f46.google.com with SMTP id q29so4376975lfb.4 for ; Thu, 25 Mar 2021 13:19:45 -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=OvugUX4iiyn74zfxZmtuJcsjcK0ep01O1SFnxrXmJqQ=; b=oRlqZwmQidTZ2auM8iT0SInu0JpxiJ8K8Iwl2oAYEo2JJ6/yoYbscEsSxo7Ae7BWI9 dzwAchsiXKwwy/nkWFLUzIK9gb5dshGms6emNy8v7T3Z4JZI8kEDz8tQrWZBWWQnNvq/ xjCys7VUCztzNIXCqVtmTm7xD8RsQApcrmRYLwJlpev23vUz5ZGqK0qQ6eqsOyZQb47W 5cQZfFPgDPL1glON7OHKEguESmcMYrmz7KWrHi04wPLUDGirFKwgacEJs8l7dVZ+sZJ6 Jd35iPVimvXmrNIWMid/7LpHS7CgVijHwLF3yB/IRI/LVCIOPJ41M46E2FaRAi0W/Yom pfmA== X-Gm-Message-State: AOAM533SBOSDUg4webjgYJf4QheAhQH3A2s3Re1jkpLdp/J8V0HUtBvq mg1Qaa+aQPiHU8vWDPkRLn5QT8Fg0MNCFw== X-Google-Smtp-Source: ABdhPJwEbfoaAzDTzNodTB4GEa/ZYKIs5ZhqTnCSwTBDPq0si0GWA464vRJwtQxaKKqwQSibspYw9g== X-Received: by 2002:ac2:50da:: with SMTP id h26mr5758208lfm.33.1616703584587; Thu, 25 Mar 2021 13:19:44 -0700 (PDT) Received: from grain.localdomain ([5.18.171.94]) by smtp.gmail.com with ESMTPSA id j27sm642508lfp.186.2021.03.25.13.19.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Mar 2021 13:19:42 -0700 (PDT) Received: by grain.localdomain (Postfix, from userid 1000) id F3D7156017D; Thu, 25 Mar 2021 23:19:41 +0300 (MSK) Date: Thu, 25 Mar 2021 23:19:41 +0300 To: Vladislav Shpilevoy Message-ID: References: <20210324163759.1900553-1-gorcunov@gmail.com> <20210324163759.1900553-3-gorcunov@gmail.com> <4b25e784-84b8-0a5d-d48c-2a47eb939d09@tarantool.org> <9e613449-0ca0-839b-f3ca-7067e4c58ee4@tarantool.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9e613449-0ca0-839b-f3ca-7067e4c58ee4@tarantool.org> User-Agent: Mutt/2.0.5 (2021-01-21) Subject: Re: [Tarantool-patches] [PATCH v4 2/3] test: add a test for wal_cleanup_delay option 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: tml Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" On Thu, Mar 25, 2021 at 08:56:15PM +0100, Vladislav Shpilevoy wrote: > >> > >> 1. You could switch to the master right away. No > >> need to switch through the default node. > > > > No. I'm *on* the replica at this moment and then > > I need to stop it. I can't stop server being on > > it, otherwise we hang. Already tried. > > I know you are on the replica. And you need to switch to the > master. Then switch to the master. I don't see why do you need to > do it ->default->master instead of just ->master way. Yeah, thanks! I realised this a bit later. Done like -- -- Stop the replica node and generate -- xlogs on the master. test_run:switch('master') test_run:cmd('stop server replica') box.space.test:insert({1}) box.snapshot() Cyrill