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 1njlnq-0000t0-CH for pgsql-hackers@arkaria.postgresql.org; Wed, 27 Apr 2022 17:50:14 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1njlno-0001N2-Ko for pgsql-hackers@arkaria.postgresql.org; Wed, 27 Apr 2022 17:50:12 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1njlno-0001Ms-6w for pgsql-hackers@lists.postgresql.org; Wed, 27 Apr 2022 17:50:12 +0000 Received: from mail-pl1-x633.google.com ([2607:f8b0:4864:20::633]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1njlnl-00051n-Ec for pgsql-hackers@lists.postgresql.org; Wed, 27 Apr 2022 17:50:10 +0000 Received: by mail-pl1-x633.google.com with SMTP id n8so2220826plh.1 for ; Wed, 27 Apr 2022 10:50:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enterprisedb.com; s=google; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=5iuC7dX/gb9BkuIyaoj/hAW2//NBe54TTnMeHy2s5zk=; b=gF5a9v/6N7HOqca5Y6xYsVb5VlBeY17kCIf6Uoaza35n/ZvMsAK6yh8m1eKyD8ffcz ZjgtGOQ4Upq3ubBc17dQ1WTANJsEmrE0Qum1ronTZ88hbhl55F1KBbrMzUqBX+rM8QTj eEIELqhZBUW+ggHpuXRHucsQG8ldz8G2+FsPuwhxXgRdoqIh1oHeatSk5RbWzzdUhGZ/ YH3ZiAwx7O4gTRylXUwN/qtZMgbyW84UIQOtNjY3EgawuwOhSMFLR5WRIXH5S3AQtg3L v6J08vKg5Yz3hKzFJ5EKTbvfuHqciywoyK8x6LiQSzZk05vYRw+JpYORzNfUCaOjDSvj QV+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=5iuC7dX/gb9BkuIyaoj/hAW2//NBe54TTnMeHy2s5zk=; b=hBawOeHom6QuGWOq68L1t5GHblk1limJrDJ9u7jGW/4ZwBFTBTq0f0hC0uj6JVE/St LdX6WTUQvO1XDp3pL1hvR3fscPxQOW5FNYvMUB+VDKIKpUrIN1dT0JEvZECu9vLLc3Dd gtw8KLcKrlMo0W2ne311ko/tZcqgb5wc6GzaQFeDiFNPPigxwupIYcZcjd7wfzgF8z56 AqGX2q+7bXwi10E4DvM+wwfej0iM3mt4E/9l5Dj45crSM4E7bbkEJPUaR95KK0xJTXDY +T5hmsAOSzi/LRB0fpecfDqAKjFlM6CR3beKXyAdZ3YSQCGoHh5r+qQYYk/pXr5taRbk DUSw== X-Gm-Message-State: AOAM533KIjI3H0Bu/je+o1nD7qbacQYI9yMpvJPIHhx/FMUYrQBqJoMQ 2s3NSgLM5rjEgBOQRHc42lYiD/8Ybi8RB3PJeTUDGzm1JHBDT03JbFAyrd8L3uKY9W1JiYbYpKs z7xR1GU0l+3y0JmQNMVGXnSWANJSDohKvOuI97K/7KPdcmsrW698nDTt/AKIe9r+b+81sTESHJE BoYbu8nVTNjE77/MZt6uLz/HQS2O82y4EiBt1VRUYco8K2qdNVfaaP X-Google-Smtp-Source: ABdhPJylKbZfXaqKIyTL/fHOdy/z1VoWn/fnRcO6y4vKjnrB0zftpa6zmq38f3pGouiE2sbfPRHCmw== X-Received: by 2002:a17:90a:c002:b0:1d9:250a:73c8 with SMTP id p2-20020a17090ac00200b001d9250a73c8mr28127507pjt.133.1651081808387; Wed, 27 Apr 2022 10:50:08 -0700 (PDT) Received: from laptop280-ma-us.hitronhub.home (24-113-193-150.wavecable.com. [24.113.193.150]) by smtp.gmail.com with ESMTPSA id j7-20020a056a00130700b004b9f7cd94a4sm20256692pfu.56.2022.04.27.10.50.07 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 27 Apr 2022 10:50:07 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.7\)) Subject: Re: Unstable tests for recovery conflict handling From: Mark Dilger In-Reply-To: Date: Wed, 27 Apr 2022 10:50:06 -0700 Cc: Andres Freund , Melanie Plageman , pgsql-hackers@lists.postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <394950.1651077914@sss.pgh.pa.us> To: Tom Lane X-Mailer: Apple Mail (2.3608.120.23.2.7) X-CLOUD-SEC-AV-Info: enterprisedb,google_mail,monitor X-CLOUD-SEC-AV-Sent: true X-Gm-Spam: 0 X-Gm-Phishy: 0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On Apr 27, 2022, at 10:11 AM, Mark Dilger = wrote: >=20 > I'll try again on master.... Still with coverage and dtrace enabled, I get the same thing, except = that master formats the logs a bit differently: # Postmaster PID for node "primary" is 19797 psql::1: ERROR: prepared transaction with identifier = "xact_012_1" does not exist [10:26:16.314](1.215s) not ok 11 - Rollback of = PGPROC_MAX_CACHED_SUBXIDS+ prepared transaction on promoted standby [10:26:16.314](0.000s) [10:26:16.314](0.000s) # Failed test 'Rollback of = PGPROC_MAX_CACHED_SUBXIDS+ prepared transaction on promoted standby' [10:26:16.314](0.000s) # at t/012_subtransactions.pl line 208. [10:26:16.314](0.000s) # got: '3' # expected: '0' With coverage but not dtrace enabled, I still get the error, though the = log leading up to the error now has a bunch of coverage noise lines = like: profiling: = /Users/mark.dilger/recovery_test/postgresql/src/backend/utils/sort/tupleso= rt.gcda: cannot merge previous GCDA file: corrupt arc tag The error itself looks the same except the timing numbers differ a = little. With neither enabled, all tests pass. I'm inclined to think that either the recovery code or the test have a = race condition, and that enabling coverage causes the race to come out = differently. I'll keep poking.... =E2=80=94 Mark Dilger EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company