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 1skFLV-0095f7-Nq for pgsql-hackers@arkaria.postgresql.org; Sat, 31 Aug 2024 04:04:17 +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 1skFLS-00Gu7l-QH for pgsql-hackers@arkaria.postgresql.org; Sat, 31 Aug 2024 04:04:15 +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 1skFLS-00Gu7d-G4 for pgsql-hackers@lists.postgresql.org; Sat, 31 Aug 2024 04:04:15 +0000 Received: from mail-lj1-x234.google.com ([2a00:1450:4864:20::234]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1skFLM-002HJ7-Kt for pgsql-hackers@lists.postgresql.org; Sat, 31 Aug 2024 04:04:13 +0000 Received: by mail-lj1-x234.google.com with SMTP id 38308e7fff4ca-2f50966c469so27539361fa.3 for ; Fri, 30 Aug 2024 21:04:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725077047; x=1725681847; darn=lists.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=wuVrfgJaSH61EIldFIpRUHp/GGt3iY5NZwQy2cEv1is=; b=fm9e5eOkkbhUaGDcZ+303GtmmipuAbB7ct8xHABcPi16U4gwzn1hepVdf/fKYv5jI4 GCH9SyTgjGgmoRsZkmoPY/d4oJByojnu11GBH8CG5hhHbKuqNZs4Fi1gJwH4fPtj/FCa z9UnesrIOytfN8u/SVxrRk/AVJARy1iHebC00nwk93gQFW7UkroJm15PAR9nx9OYR5Fa hf8mXhjclr9GEyVyWYfablQUEfcXjGnSfLxNy3DX33jj/INvPSrFSTxa3Mfv90nO19ru b2l5Gtekj8zilHdLVkKNA23cuka+yliybcM7um8LRnJDDRm9W/X6inVGt5FKAxLxigNf AC+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725077047; x=1725681847; 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=wuVrfgJaSH61EIldFIpRUHp/GGt3iY5NZwQy2cEv1is=; b=VNwJyrHckXLPsq1zgutUZeyRcOqvucsPNouqavAHfi0T8Ra9mnb6HsEIfr9ECHxQKK NpkiFHjTPSs5+/xVrRM/58PwhEj1dgeaJkutqI99aHolinoTO1v7wo34BlADEFa+SsFf Wif0iUykCgPcRm57ZptdXJ+BpB7GcuPyhos4Vxxed4qxgJb4ZR4VWcThMzhJ6Qi3Dexx 9GifVcSDtFjFCtHycNmMsy92CDaeFQMbiwza0sYhFOsDMUISSOg/OnPPAEoGit5iLtrL r3lA8enihuoj2wwNI1Apf6LB9DDLz6eVid6GvyR4ypS5kJGUfXCobkhugK/xlcyEzfwq KG2g== X-Forwarded-Encrypted: i=1; AJvYcCU1jwZzq1V3WPnd9uzKSIqkVwrwhPpMhovQQjZ3QUekKHQcL3iJ7ZqRlP0h9PMRmb54JLbCc0XLEEguwMhU@lists.postgresql.org X-Gm-Message-State: AOJu0YzcaJhKSd6XiePa5Nesi6KHXR6ydnWt7C7hViV3b3GT2wl7s0hs 7X05vRYp9bryAlAfTRMizqBLaD07WyjB92yTj6oicd902yIyI2a3 X-Google-Smtp-Source: AGHT+IH6g4aRbVC5GcFgw5Ko0OLeH0wvjvgDHrUF6pCFUiLMwaLmf2c1sFMZcarEAvaJPZIEbZN2SA== X-Received: by 2002:a2e:801:0:b0:2f3:b582:a914 with SMTP id 38308e7fff4ca-2f6290dc76dmr3674481fa.41.1725077046147; Fri, 30 Aug 2024 21:04:06 -0700 (PDT) Received: from [1.0.0.7] ([91.185.76.193]) by smtp.gmail.com with ESMTPSA id 38308e7fff4ca-2f614f06233sm9299611fa.47.2024.08.30.21.04.04 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 30 Aug 2024 21:04:05 -0700 (PDT) Message-ID: <37c3bd11-7321-fe58-99ca-bc15a67c08cc@gmail.com> Date: Sat, 31 Aug 2024 07:04:04 +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: [EXTERNAL] Re: Add non-blocking version of PQcancel Content-Language: en-US To: Tom Lane , Jelte Fennema-Nio Cc: Alvaro Herrera , Noah Misch , Jacob Champion , Denis Laxalde , vignesh C , Thomas Munro , Greg Stark , "Gregory Stark (as CFM)" , Jelte Fennema , Daniel Gustafsson , Peter Eisentraut , Andres Freund , Justin Pryzby , Robert Haas , PostgreSQL Hackers , Etsuro Fujita References: <202407221126.vyw5q3h4nyoh@alvherre.pgsql> <5ea25e4d-1ee2-b9bf-7806-119ffa658826@gmail.com> <578934.1725045685@sss.pgh.pa.us> <584811.1725048717@sss.pgh.pa.us> <591893.1725051309@sss.pgh.pa.us> From: Alexander Lakhin In-Reply-To: <591893.1725051309@sss.pgh.pa.us> 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 Hello Tom, 30.08.2024 23:55, Tom Lane wrote: > Pushed with that addition and some comment-tweaking. We'll see > whether that actually makes things more stable, but I don't think > it could make it worse. Thank you for fixing that issue! I've tested your fix with the modification I proposed upthread:              idle_session_timeout_enabled = false;          } +if (rand() % 10 == 0) pg_usleep(10000);          /*           * (5) disable async signal conditions again. and can confirm that the issue is gone. On 8749d850f~1, the test failed on iterations 3, 3. 12 for me, but on current REL_17_STABLE, 100 test iterations succeeded. At the same time, mylodon confirmed my other finding at [1] and failed [2] with: -ERROR:  canceling statement due to statement timeout +ERROR:  canceling statement due to user request [1] https://www.postgresql.org/message-id/4db099c8-4a52-3cc4-e970-14539a319466%40gmail.com [2] https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=mylodon&dt=2024-08-30%2023%3A03%3A31 Best regards, Alexander