Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jRtjE-0005NZ-QD for pgsql-committers@arkaria.postgresql.org; Fri, 24 Apr 2020 08:30:32 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jRtjC-0006rV-S3 for pgsql-committers@arkaria.postgresql.org; Fri, 24 Apr 2020 08:30:30 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jRtjC-0006rN-Kc for pgsql-committers@lists.postgresql.org; Fri, 24 Apr 2020 08:30:30 +0000 Received: from mail-pl1-x62c.google.com ([2607:f8b0:4864:20::62c]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jRtj9-0006Wc-Tp for pgsql-committers@lists.postgresql.org; Fri, 24 Apr 2020 08:30:29 +0000 Received: by mail-pl1-x62c.google.com with SMTP id n24so3477023plp.13 for ; Fri, 24 Apr 2020 01:30:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:message-id:to:cc:subject:from:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=1ttaX8IFZA2pQctCbUtMHpjTID6DtslVtXWuIxl6kRE=; b=JCZX9qvf/mvO9jKAPvBlQ71NDaFlbQi+kXAxFHcraEMlBV6kQvHaIJ/4G6R+KLFtWE qwdcqXUw5Tc8GxW+BCR6yEQ9old1LxTobmfLWsW1nFeIdal61rv/zZWZR9a04sZ6ivDy BtTdZCQweoi2GXWYDpedmB5xNopEliTEwYkIsjFcCGNdSG7uVIZ7ar8kZGHj6OQATabM l4OSlSAOpT0YLChqzK4Z/gQbd4vFFYspQNKsKrdpJZbofLDeM0InzZnZn9bo2JCHT0Ri rZ9hmWeIVcy3nDFRsXJ7YOQTsGAS0vd5vqrDgWLoV2rSHWZAqq4IA8zGpuVyVMOnU8qn tI2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:message-id:to:cc:subject:from:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=1ttaX8IFZA2pQctCbUtMHpjTID6DtslVtXWuIxl6kRE=; b=huiEGt4uhDHByss+UHASiCENtvltjOBvE2RYowJHxWZ+OVRDicBooFc0U0F0zzuVcG l89o6DswcOwTOHeHJjFF9S0fecZT1DC3cZmuGD3yMVSMPruL6dj/H1I3duzU05r3e4g0 9VmJFQRyuNJyE32kx2uDCKVR5I1+sQLA5wudPJhcUkXh7nX+EzW4hWofipMhtxOAcICH d6RrX6GoZGu95NdoIIKisa970kKQDawd7Mi7UTrVU91OboWXtSInC5/36odDGN0+mySG 0pDykb5zkWUuSnxPGWKx52SY8puvJRKyv82XIva+INNZHpk4ZuJN7Zn/fYOwZg1ggz4c qn+A== X-Gm-Message-State: AGi0PuY9hq1jm0fhZQtdAaQJhWAc9IyjKav+1x4aVXoxziYENtCBsyeJ sOkQZsU1J0EvmYof+dFvrzY= X-Google-Smtp-Source: APiQypKqLxjjwR89GhJpZnAGohFsG+H3GQq7NV59BuK2zzeE3fImdy1KyxIadyDkUDthsAaSoZxw4A== X-Received: by 2002:a17:90b:f13:: with SMTP id br19mr5052833pjb.153.1587717024814; Fri, 24 Apr 2020 01:30:24 -0700 (PDT) Received: from localhost (ag027197.dynamic.ppp.asahi-net.or.jp. [157.107.27.197]) by smtp.gmail.com with ESMTPSA id o68sm5035392pfb.206.2020.04.24.01.30.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Apr 2020 01:30:24 -0700 (PDT) Date: Fri, 24 Apr 2020 17:30:21 +0900 (JST) Message-Id: <20200424.173021.437425683089236305.horikyota.ntt@gmail.com> To: michael@paquier.xyz Cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Fix handling of WAL segments ready to be archived during crash r From: Kyotaro Horiguchi In-Reply-To: <20200424011437.GA806193@paquier.xyz> References: <20200424005929.GK33034@paquier.xyz> <20200424011437.GA806193@paquier.xyz> User-Agent: Mew version 6.8 on Emacs 26.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk At Fri, 24 Apr 2020 10:14:37 +0900, Michael Paquier wrote in > On Fri, Apr 24, 2020 at 09:59:29AM +0900, Michael Paquier wrote: > > And this visibly comes down to the fact that we don't take care enough > > of the timing between the restartpoints done, the startup process > > doing its recycling work and the archiver. The rest of the test > > relies on the reports of pg_stat_archiver a points to wait at as > > published by the archiver process. So there are two things we could > > do here: > > 1) Just remove the unstable parts of the tests (the three ones above), > > and keep coverage based on everything we have using pg_stat_archiver. > > 2) Remove the test entirely, though I would rather have us keep some > > coverage, particularly for primaries as this got broken. > > > > I'd rather do 2), any thoughts? > > Oops, sorry. I sent this message too quickly. I would rather > actually do 1) and keep the major parts of the tests. All the > buildfarm failures are just around the three checks mentioned > upthread. Thanks for your trouble fixing the failures. I think we can reimplement them by waiting pg_stat_archiver.last_failed_wal at least for archive_mode=always case. I'm not sure about the case where archive_mode=on, though. regards. -- Kyotaro Horiguchi NTT Open Source Software Center