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 1paC8D-0003jX-Sk for pgsql-bugs@arkaria.postgresql.org; Thu, 09 Mar 2023 09:00:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1paC8B-0007Aq-0V for pgsql-bugs@arkaria.postgresql.org; Thu, 09 Mar 2023 09:00:11 +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 1paC8A-0007Ah-Le for pgsql-bugs@lists.postgresql.org; Thu, 09 Mar 2023 09:00:10 +0000 Received: from mail-lf1-x130.google.com ([2a00:1450:4864:20::130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1paC83-0007OL-UK for pgsql-bugs@lists.postgresql.org; Thu, 09 Mar 2023 09:00:10 +0000 Received: by mail-lf1-x130.google.com with SMTP id j11so1324315lfg.13 for ; Thu, 09 Mar 2023 01:00:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678352403; 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=QRDIVy/FmxxH99t9ZYHBcS7RtDo80FBlkxeYGG06aug=; b=juYNB8LkHFj4noIabWVlDs+IIlfbPp1N47fpwmNJSxbl9YC2EVfAW9v6B/ESJpgQQt RP1t5Kh7Gsia0P++lwyw7oCjYSJp73ZCNeba0MR1EnQtL1lmxlDF8395i/IXZ7gzkyfU DUOfTfmL/H7uuAIUqoU4T2aHyspfmt0IvdGYK/elYWVzJRZ7jvWjUYdA+6AomxNaTZ0V vEjQW72LHcByBMh4+5YtTv5fVxaHrAH/f+VUcugGe0Iw3ej4B9HDalNSa6mccRZYEroG sDHCBOMkPAVcjx0p4wXrZ/rL92HYHcvZwckCaakONDggXK1h3na8DmyEOCvxrVDV8bDg vLHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678352403; 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=QRDIVy/FmxxH99t9ZYHBcS7RtDo80FBlkxeYGG06aug=; b=IJwdiovSNzDFYxOKZAg8F3B15THcvXIyRm4UEgQwiwkG8g0LPi7+HOKXQ77yrPBGxf zpTDtsnoPjq79Qxae9BADRW7ZdJIuqoV+qm5RBR0eGEkNVRA6hCBBBqGaZqub4yxGOeY AWwdyfW9rhHJGGBS1drZXi7pVfAdQo7Gn2AXr/dyX9LMHdoICMTrol9XBWKkaykUbY0C LrCz4JxdZnDu9wPYtez/eM/TVZqv1pDdzg0eALCp4hJtC0vxAPs9KaOpWel3kCwUvdup lwGlGNmgivHN8QHurn4t8eJvwDktX3319jZ0hVWyyPVFi9yw7XRKfeOUHHCW0QvcZjCa n/gg== X-Gm-Message-State: AO0yUKUeKoRut1IcaW+bF2BmfN7LYPbLtEI2wf3HIDDIrxbzreqw0trk hg7zc8ja8i7mKVhenN8Ow04= X-Google-Smtp-Source: AK7set/FRRz92x5lAwq3KXMXe+3k1pBaF+ED3SqrR43FmkucmGGNLc0yNlZrcwmrJgtjdQgbtLxOTQ== X-Received: by 2002:ac2:4905:0:b0:4e7:dd1e:e521 with SMTP id n5-20020ac24905000000b004e7dd1ee521mr5555412lfi.9.1678352402946; Thu, 09 Mar 2023 01:00:02 -0800 (PST) Received: from [1.0.0.7] ([178.155.5.76]) by smtp.gmail.com with ESMTPSA id f25-20020ac25339000000b004b567e1f8e5sm2588345lfh.125.2023.03.09.01.00.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 09 Mar 2023 01:00:02 -0800 (PST) Message-ID: <77a67fa9-9c69-d1e8-2b83-15b27e11ccf7@gmail.com> Date: Thu, 9 Mar 2023 12: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: BUG #17368: Assert failed in GetSafeSnapshot() for SERIALIZABLE READ ONLY DEFERRABLE transaction Content-Language: en-US To: Thomas Munro Cc: pgsql-bugs@lists.postgresql.org References: <17368-98a4f99e8e4b4402@postgresql.org> <18a116d2-7927-6a62-aa60-ab16c53183f9@gmail.com> <33d30d9c-9491-386e-d19f-b58861683fe2@gmail.com> 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 09.03.2023 07:39, Thomas Munro wrote: > Pushed, without that test. > > I realised that the test would not be stable in the build farm. If we > made the lock timeout high, the test would be slow, but if we made it > low, then there would be two possible outputs depending on a race, and > 10ms as you had it seems -- I guess? -- likely to be unstable under > valgrind or an RPi2 or something. There is probably some clever way > to write a different test schedule, but the new code is exercised by > existing tests, and the assertion has been failing once every couple > of days on CI since I started collecting that data a few weeks ago, so > we have some kind of coverage, at least for master. I had thought that we can use the same timeout that can be seen in a couple of other tests, but now I see that those tests don't depend on it directly/have outweighing timeouts, so I completely agree, that the test proposed is not elaborated enough to be committed. Thank you! Best regards, Alexander