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 30924714BC; Wed, 6 Oct 2021 01:32:27 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 30924714BC DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1633473147; bh=eLHaVBFNN84YUApK63iY1pkSwHZTotmW64TUFbn0mZ4=; h=Date:To:Cc:References:In-Reply-To:Subject:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=ArF3ZevBycQage6x8d+kbV+nNJI0cdhwsmuXzrpTOiJeUWFclfjs60NPEAsPAIW22 0/soHJz8wHhgPMJvZVl2fuyQYTa0JDp0uYuoCjXruKn7mIPtxRf5UPEr4ZvC4Ak7Qm Bf8B97Jopfkv7hptjTbjOGR77mycEALAxg7ELlvk= Received: from mail-lf1-f41.google.com (mail-lf1-f41.google.com [209.85.167.41]) (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 1AB476FC8F for ; Wed, 6 Oct 2021 01:32:23 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 1AB476FC8F Received: by mail-lf1-f41.google.com with SMTP id r19so2041120lfe.10 for ; Tue, 05 Oct 2021 15:32:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=M27B0RX7nKkYluAoqS4BYHMyD3RhZfjG2p2TJ/7d0tY=; b=17oSdI9wz1Pc/aA/FD064BQiJaxORfwEFl/48BfmeeNVBDqqWXRZLTC3TlnzetKjET /D/OZDvWJC3whe76HFBguwuv4IJtoI9fv1B++fxhzc1/ikLgB/iDoDjDwBKwnmt5Z5pq MyN9dFTz7M4Eea9e5depCQdDXwW53Afh9hSEJQS/Ahs5kIQuZR/znPFQXAGTLJyNsckz 8bEsUIZm3e2m/6iiY75NnuGrGISkWxiXwvfMJUPsEhe/dIbvIhKJeJl8gWN2jGaM6pRl ZZOadgnOptjtGY8Z2pYsNM9ilRSoNkImJv7i0rqlAgdIvLpdybDbZaZJTYHKyiEmRekA s+mQ== X-Gm-Message-State: AOAM532HTevneNp33VJJ0tKO/pIaQjU8VjVgIyJG9Jf5g15TruWafH/r tLNGqJLI2fX7wdUgsm7Kx56sSM9N3Ns= X-Google-Smtp-Source: ABdhPJwIBOFB9lL5MeVTpe48yB+R3i3NT/oP0A+Z1BMwCP9ZUvC6p7mjcB3APP4OEkmo9IOlHPCLnQ== X-Received: by 2002:a2e:b888:: with SMTP id r8mr24045532ljp.147.1633473142148; Tue, 05 Oct 2021 15:32:22 -0700 (PDT) Received: from grain.localdomain ([5.18.253.97]) by smtp.gmail.com with ESMTPSA id e29sm545934lfc.141.2021.10.05.15.32.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Oct 2021 15:32:21 -0700 (PDT) Received: by grain.localdomain (Postfix, from userid 1000) id 7B0455A0020; Wed, 6 Oct 2021 01:32:20 +0300 (MSK) Date: Wed, 6 Oct 2021 01:32:20 +0300 To: Serge Petrenko Cc: tml , Vladislav Shpilevoy Message-ID: References: <20210930094445.316694-1-gorcunov@gmail.com> <20210930094445.316694-4-gorcunov@gmail.com> <42713720-689c-221c-29a4-7087ccbc472f@tarantool.org> <1c992b36-7ad4-c68b-5252-69a6f1a7b67a@tarantool.org> 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 v19 3/3] test: add gh-6036-qsync-order test 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 Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" On Wed, Oct 06, 2021 at 01:26:16AM +0300, Cyrill Gorcunov wrote: > On Tue, Oct 05, 2021 at 04:55:24PM +0300, Serge Petrenko wrote: > > There is a way to dect a blocked promote: > > There's ERRINJ_WAL_WRITE_COUNT. > > It's incremented each time you call wal_write. Even before the write is > > blocked. > > > > So you need to save ERRINJ_WAL_WRITE_COUNT, then do promote on replica1, > > then > > return to replica2 and wait until ERRINJ_WAL_WRITE_COUNT gets bigger than > > your saved > > value. > > Here is a final version (which I didn't pushed outside yet, since I > started a new branch v20), anyway to share data early. > --- > From: Cyrill Gorcunov > Subject: [PATCH] test: add gh-6036-qsync-order test > > To test that promotion requests are handled only when appropriate > write to WAL completes, because we update memory data before the > write finishes. Drop it please, need to rework :/