Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rmwUH-00Ajt8-Bw for pgsql-hackers@arkaria.postgresql.org; Wed, 20 Mar 2024 14:00:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1rmwUF-0055UC-C5 for pgsql-hackers@arkaria.postgresql.org; Wed, 20 Mar 2024 14:00:11 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rmwUF-0055U3-0m for pgsql-hackers@lists.postgresql.org; Wed, 20 Mar 2024 14:00:11 +0000 Received: from mail-lf1-x132.google.com ([2a00:1450:4864:20::132]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1rmwU7-005VMH-Gj for pgsql-hackers@postgresql.org; Wed, 20 Mar 2024 14:00:10 +0000 Received: by mail-lf1-x132.google.com with SMTP id 2adb3069b0e04-512e4f4e463so7618384e87.1 for ; Wed, 20 Mar 2024 07:00:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710943203; x=1711548003; darn=postgresql.org; 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=MvQPGS8nrqyJLQRg1yqM+AnTMq/3SjRuedBNupqvFWY=; b=duP+M1zw/QhFITW/gCAqqAu3w23sJI1Du23RlRhe9PQK4tVmiakJTYNZKcVGf+xQ+R UzjT/FUMe3eiCv+9VR09o/IGpYMOj2ZQOnFeXsq7JOjjwdjYlfw5EbOZAS3zwidcJrSO ymr+THlKz327V6p+hMnqRVoKmEek7dTpsIv2i0e8fL1zrwBAaxvueSMAMSoc7hpBNOX3 C7lbkF7GKiDY8meg7iUOUccKEQacbLfXePkinvlQ7YzkW+i54zPrdqjgNN7r+xav8GuI t8xBtWkUATcFtcL4P2ST3+KkUMvSSiCYhFUp3XnUF5eM0bLj1SCgcr9ac7wDzpQGSfM6 PI2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710943203; x=1711548003; 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=MvQPGS8nrqyJLQRg1yqM+AnTMq/3SjRuedBNupqvFWY=; b=VJdp98uuhz+MSuoffqz1cAjApvTuxGO+zGnWDpDQVGrA3y8m5o9APUF0hdWAfgaThS kgVEWs1KvfU6Mqq7982f2U974x63g278+TB9aPyY5gy26VUoUnT541Yv5SYD+yrNGYpR nFnS0uRH2EhDjJapYCwEs00x8T4Zl7KkilXN6xOuJXkYS5h8TRFpkq3WIfeujOOxC7i0 HKi8EbUvPjZ7x/3SEo/koYWOUvI1LfSkd+kDBtm7QnIPPZPxZz5hLk6PFJDoalNKNGSV 2N99OeUHc132DXYtIREzb2l399RWRViQ32qfbeyShBA4RV4oZOyNqnTcu5d3D6SNfcTo dxUg== X-Gm-Message-State: AOJu0YwiLS+cGcSMigvM0gI4ae4w6qXCZSznX1DZhjkAm+xRSRshw7V5 pJJ/bp/Hyxf8ZFmyTyZJXiClyoM6AnlFMiOo+YENGaRZp+SVA5ob9cIFDloG X-Google-Smtp-Source: AGHT+IGqoBR/1s9n1iUrO8YZqQEVKraKB8Z0xxatPXtquVxAEmop2byMd9z5XcNGj40zeDCtBwzdxw== X-Received: by 2002:a19:5f5d:0:b0:513:cf75:2ccc with SMTP id a29-20020a195f5d000000b00513cf752cccmr12775583lfj.0.1710943202708; Wed, 20 Mar 2024 07:00:02 -0700 (PDT) Received: from [1.0.0.7] ([91.185.78.94]) by smtp.gmail.com with ESMTPSA id o11-20020ac24e8b000000b00513b9acf0dbsm2297220lfr.235.2024.03.20.07.00.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 20 Mar 2024 07:00:02 -0700 (PDT) Message-ID: <714729ea-f536-0faf-353b-cbd5c8f241ea@gmail.com> Date: Wed, 20 Mar 2024 17:00:00 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: Test 031_recovery_conflict.pl is not immune to autovacuum Content-Language: en-US To: Melanie Plageman Cc: pgsql-hackers References: From: Alexander Lakhin In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hello Melanie, 20.03.2024 16:15, Melanie Plageman wrote: > Seems like we could just add autovacuum_enabled=false to the table like this: > diff --git a/src/test/recovery/t/031_recovery_conflict.pl > b/src/test/recovery/t/031_recovery_conflict.pl > index d87efa823fd..65bc858c02d 100644 > --- a/src/test/recovery/t/031_recovery_conflict.pl > +++ b/src/test/recovery/t/031_recovery_conflict.pl > @@ -59,7 +59,7 @@ my $table1 = "test_recovery_conflict_table1"; > my $table2 = "test_recovery_conflict_table2"; > $node_primary->safe_psql( > $test_db, qq[ > -CREATE TABLE ${table1}(a int, b int); > +CREATE TABLE ${table1}(a int, b int) WITH (autovacuum_enabled = false); > INSERT INTO $table1 SELECT i % 3, 0 FROM generate_series(1,20) i; > CREATE TABLE ${table2}(a int, b int); > ]); Thanks for paying attention to it! With such modification applied I've got another failure (on iteration 2): [13:27:39.034](2.317s) ok 14 - startup deadlock: lock acquisition is waiting Waiting for replication conn standby's replay_lsn to pass 0/343E6D0 on primary done timed out waiting for match: (?^:User transaction caused buffer deadlock with recovery.) at t/031_recovery_conflict.pl line 318. # Postmaster PID for node "primary" is 1523036 ### Stopping node "primary" using mode immediate 031_recovery_conflict_standby.log really doesn't contain the expected message. I can share log files from a successful and failed test runs, if they can be helpful, or I'll investigate this case today/tomorrow. Best regards, Alexander