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 1puqAQ-0001fS-2r for pgsql-hackers@arkaria.postgresql.org; Fri, 05 May 2023 07:47:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1puq9Q-0002Ku-Cb for pgsql-hackers@arkaria.postgresql.org; Fri, 05 May 2023 07:46:48 +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 1puq9Q-0002Kl-3g for pgsql-hackers@lists.postgresql.org; Fri, 05 May 2023 07:46:48 +0000 Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1puq9M-000hGw-1L for pgsql-hackers@lists.postgresql.org; Fri, 05 May 2023 07:46:47 +0000 Received: by mail-wm1-x336.google.com with SMTP id 5b1f17b1804b1-3f19afc4fd8so9340185e9.2 for ; Fri, 05 May 2023 00:46:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683272803; x=1685864803; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=7KjEQ0dzUA/OU2tWIeIjwLQrP8O0MkxpzO62gun4Se8=; b=Dm2ZWn/fMq7Rp8vc8ty0SSKlSA9Dlz7fc82PtobvY2ZKMfY5+k2fdCEs/Ixl8ueQCO 1CfLNzFzx7AIucLAmLJEI2S0hOAMY+E9iknSi8TtE5AXCB9d6BN3rh/BrrxLvKPG/rRH EcZrntB22sihzlFGUWW8+mHHQbR/NUfszQQxRhTvfuq48cCR8J/plLQObNCafOl20LCi M/k4Tm0eYV6ndsND55qDsY5dJYfRfgzrjwDeAju6ibrOfodk8XUJWX+Rcfs1tS5qI87g ZlGDQ00S4QRxv/G7EMw/F8giFdXmSGONiU8iWkxiPPhwyuvdG3x5fmLjJbnNgUIA8Xeg 9HRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683272803; x=1685864803; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=7KjEQ0dzUA/OU2tWIeIjwLQrP8O0MkxpzO62gun4Se8=; b=OKj0RQtfITMCOifjTaChY3e819hSG+PSVcBqB9RncA7fKUQtK/2y6sg2imkgZKd+65 xnlL5t+kaC0ORYqC7HxfzyyKUfwuH2ra376vp2tWhktqyw8Z0cbu7+oFUC/LxGwDJm7S pgHIU+rX+Ebw/EnKNd6bX2AIeS7TUf8nkMT/ybnMzIY/i2FV6lWvYLMAc4/jfYO+9xzV Q40gpDwww4i2VVrclHIzztnBCRH3claVcbYofJLt/X0vSAF9qo+0Hm26yMDDHR0Bo113 ZCqSbQexE4rxh/pedMniIT1eg++d1+HtSLV83rZh5dQhriqc2tX0o1thUWfpDLVHlOFg yA2Q== X-Gm-Message-State: AC+VfDxSVBK3CoskgYZ2l/RJemQtecEJClY7GuBh/IfsCqg22Ys23YT0 j9fhc920hLXQUKKrqJwt7qw= X-Google-Smtp-Source: ACHHUZ6G0aa3Hv29hqhaZcHzB3/3NqZ0MJYzcErL1kI02ECcEWtYHkiYBPlYvt8d8aOhA9DguNaJTQ== X-Received: by 2002:a05:600c:b44:b0:3f0:3d47:2cc5 with SMTP id k4-20020a05600c0b4400b003f03d472cc5mr368853wmr.10.1683272803104; Fri, 05 May 2023 00:46:43 -0700 (PDT) Received: from [192.168.7.14] ([54.239.6.185]) by smtp.gmail.com with ESMTPSA id y10-20020a7bcd8a000000b003f16fc33fbesm7064887wmj.17.2023.05.05.00.46.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 05 May 2023 00:46:42 -0700 (PDT) Message-ID: Date: Fri, 5 May 2023 09:46:41 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.10.1 Subject: Re: Add two missing tests in 035_standby_logical_decoding.pl Content-Language: en-US To: Amit Kapila Cc: vignesh C , "Yu Shi (Fujitsu)" , PostgreSQL Hackers References: <2fefa454-5a70-2174-ddbf-4a0e41537139@gmail.com> <9ab1827c-9a57-8c48-59b2-c5fb62c21be3@gmail.com> <74f80bc1-6b39-b2a8-c716-98beefb75e0b@gmail.com> <17b6b056-4f53-c444-0c94-869547d1a5df@gmail.com> <054defef-de15-53e4-6c5a-d16ccc21d4ba@gmail.com> <8a13f0d8-71f3-773b-7135-5974fd53724b@gmail.com> <6711e200-0d5c-98c3-ba39-7d64a6936f7a@gmail.com> From: "Drouvot, Bertrand" In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 5/5/23 9:04 AM, Amit Kapila wrote: > On Fri, May 5, 2023 at 11:08 AM Drouvot, Bertrand > wrote: >> >> On 5/4/23 6:43 AM, Amit Kapila wrote: >>> On Thu, May 4, 2023 at 8:37 AM vignesh C wrote: >>>> >>>> Thanks for posting the updated patch, I had run this test in a loop of >>>> 100 times to verify that there was no failure because of race >>>> conditions. The 100 times execution passed successfully. >>>> >>>> One suggestion: >>>> "wal file" should be changed to "WAL file": >>>> +# Request a checkpoint on the standby to trigger the WAL file(s) removal >>>> +$node_standby->safe_psql('postgres', 'checkpoint;'); >>>> + >>>> +# Verify that the wal file has not been retained on the standby >>>> +my $standby_walfile = $node_standby->data_dir . '/pg_wal/' . $walfile_name; >>>> >>> >>> Thanks for the verification. I have pushed the patch. >>> >> >> It looks like there is still something wrong with this test as there >> are a bunch of cfbot errors on this new test (mainly on macOS - Ventura - Meson). >> > > Is it possible for you to point me to those failures? > >> I'll try to reproduce with more debug infos. >> > > Okay, thanks! > After multiple attempts, I got one failing one. Issue is that we expect this file to be removed: [07:24:27.261](0.899s) #WAL file is /Users/admin/pgsql/build/testrun/recovery/035_standby_logical_decoding/data/t_035_standby_logical_decoding_standby_data/pgdata/pg_wal/000000010000000000000003 But the standby emits: 2023-05-05 07:24:27.216 UTC [17909][client backend] [035_standby_logical_decoding.pl][3/6:0] LOG: statement: checkpoint; 2023-05-05 07:24:27.216 UTC [17745][checkpointer] LOG: restartpoint starting: immediate wait 2023-05-05 07:24:27.259 UTC [17745][checkpointer] LOG: attempting to remove WAL segments older than log file 000000000000000000000002 So it seems the test is not right (missing activity??), not sure why yet. Regards, -- Bertrand Drouvot PostgreSQL Contributors Team RDS Open Source Databases Amazon Web Services: https://aws.amazon.com