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 1rsPVY-006sYW-Dq for pgsql-hackers@arkaria.postgresql.org; Thu, 04 Apr 2024 16:00:09 +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 1rsPVX-008DcS-LB for pgsql-hackers@arkaria.postgresql.org; Thu, 04 Apr 2024 16:00:07 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rsPVX-008Db1-7K for pgsql-hackers@lists.postgresql.org; Thu, 04 Apr 2024 16:00:07 +0000 Received: from mail-lf1-x12e.google.com ([2a00:1450:4864:20::12e]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1rsPVT-000cy6-Px for pgsql-hackers@postgresql.org; Thu, 04 Apr 2024 16:00:06 +0000 Received: by mail-lf1-x12e.google.com with SMTP id 2adb3069b0e04-516c11b6af9so1681716e87.2 for ; Thu, 04 Apr 2024 09:00:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712246402; x=1712851202; 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=f2sjjgrD9+NVFsi5uxUaNRlhCiCKjctffq32e4DmmNw=; b=VIGViRbiY1uUVd0otKwWfDqV3kHYuGrALQzM1dVkSIS6jPfk7wnYDD1AGN3D6ZYmvL Wghnqetq068NsvLWZRMGYhRxqay0VhlpV/GHC41nrqHDg/rr9U1NNYpN5eeqZvpeg8t+ fIl6hkQgjG9HTDwRKTOO/IqtupiAThDyoOA9ujnuKcsbw+N5mSFNK7eamoqZ5UMzc/8D GQ2bknMXqOQiTmiDZ4obLS5Upn3luOwE16j2XxnibrIfsJJcWnizTOaRnlRFk296KD7o AtycfQTU8j/zOa/vqHxeEl4Fy1ZJYU9dOQyXtmNoYE6CfVaMYqwTP4vKLBAqdh59NVXM +z9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712246402; x=1712851202; 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=f2sjjgrD9+NVFsi5uxUaNRlhCiCKjctffq32e4DmmNw=; b=dQMNTrdGgG//F4QgiREUlr5Qw1jNwJSscwjHmZLaI2/IKvzrqu0PsABGVy0Y11bvFF yOcuuFNFp0eGH1rnyno42aWbjsGSWxiKLrw6g4VErc4VMmkYpZhU/fj9yR6XbJTuyf43 hrsDrB4zdkSBISOF+EA7woHTeF8fKmf46KLIkWQ/uy5hke9ws/yyfeVQ0+VRFPiTVwIh 9Ibb6w7vsbGLljjwoeTXjKb+/w3sJjhpQYnSrcEVyrJhWqNeR5bES6R79bgKPhyqhzaI SClKzRKrvAJaSPZQT1LZBVpEYvHOAbFb20rVdcAQDyLXxHrALOI+vi9pHXfYiHeUN4o8 Fuag== X-Forwarded-Encrypted: i=1; AJvYcCW+me9az2HFmBoTyPeaf6W4P9/vRgjiILJMxK47wNozUVdcGSqC0q08fQEcAPFCizqMaofSei7CcpAI2B1mKyzkhpYJh5mHaQ1+28hP X-Gm-Message-State: AOJu0YxxdJcMbYRcEtF88vTGRtv0yT1Cxe/8ptfcHeT5r/NTP1nNjHcJ 97LlxlIG5u+GbnGSrIuGkL5fpZrarynruiOf1KJMiIKwrdmQCKaz X-Google-Smtp-Source: AGHT+IFnxSsJi6Fhg85pJ4ZRziaUanx+anPw19Pdgj5lzsWzv88Dx5ICsNLmDs3jNemX4FREiI2B0w== X-Received: by 2002:a19:910f:0:b0:516:d04f:b58e with SMTP id t15-20020a19910f000000b00516d04fb58emr1256464lfd.30.1712246401961; Thu, 04 Apr 2024 09:00:01 -0700 (PDT) Received: from [1.0.0.7] ([178.155.25.248]) by smtp.gmail.com with ESMTPSA id h15-20020a19ca4f000000b00516c50689dfsm279447lfj.70.2024.04.04.09.00.00 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 04 Apr 2024 09:00:01 -0700 (PDT) Message-ID: <7e914807-eeaa-5c44-3543-bb2888030122@gmail.com> Date: Thu, 4 Apr 2024 19: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: Recent 027_streaming_regress.pl hangs Content-Language: en-US To: Andres Freund , Tom Lane Cc: Thomas Munro , Michael Paquier , pgsql-hackers , Bharath Rupireddy References: <2378342.1710449799@sss.pgh.pa.us> <20240321004145.obrbakt4ugzcsphy@awork3.anarazel.de> <20240326035607.grqoyrxjvpyhnkrf@awork3.anarazel.de> <2750204.1711425638@sss.pgh.pa.us> <20240326042832.4urkzpnwhawyngah@awork3.anarazel.de> <2756083.1711428894@sss.pgh.pa.us> <20240326075912.sia3wlvnaqnbf47u@awork3.anarazel.de> From: Alexander Lakhin In-Reply-To: <20240326075912.sia3wlvnaqnbf47u@awork3.anarazel.de> 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 Andres, 26.03.2024 10:59, Andres Freund wrote: > Late, will try to look more in the next few days. > AFAICS, last 027_streaming_regress.pl failures on calliphoridae, culicidae, tamandua occurred before 2024-03-27: https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=calliphoridae&dt=2024-03-26%2004%3A07%3A30 https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=culicidae&dt=2024-03-22%2013%3A26%3A21 https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=tamandua&dt=2024-03-24%2007%3A44%3A27 So it looks like the issue resolved, but there is another apparently performance-related issue: deadlock-parallel test failures. A recent one: https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=canebrake&dt=2024-04-02%2022%3A20%3A22 test deadlock-parallel            ... FAILED   345099 ms +isolationtester: canceling step d2a1 after 300 seconds  step d2a1: <... completed> -  sum ------ -10000 -(1 row) - ... The server log shows: 2024-04-02 23:56:45.353 UTC [3583878][client backend][5/530:0] LOG: statement: SET force_parallel_mode = on; ...                   SELECT lock_share(3,x) FROM bigt LIMIT 1; 2024-04-02 23:56:45.364 UTC [3583876][client backend][3/2732:0] LOG:  execute isolationtester_waiting: SELECT pg_catalog.pg_isolation_test_session_is_blocked($1, '{3583877,3583878,3583879,3583880}') 2024-04-02 23:56:45.364 UTC [3583876][client backend][3/2732:0] DETAIL:  parameters: $1 = '3583878' ... 2024-04-02 23:57:28.967 UTC [3583876][client backend][3/5097:0] LOG:  execute isolationtester_waiting: SELECT pg_catalog.pg_isolation_test_session_is_blocked($1, '{3583877,3583878,3583879,3583880}') 2024-04-02 23:57:28.967 UTC [3583876][client backend][3/5097:0] DETAIL:  parameters: $1 = '3583877' 2024-04-02 23:57:29.016 UTC [3583877][client backend][4/530:0] LOG: statement: COMMIT; 2024-04-02 23:57:29.039 UTC [3583876][client backend][3/5098:0] LOG:  execute isolationtester_waiting: SELECT pg_catalog.pg_isolation_test_session_is_blocked($1, '{3583877,3583878,3583879,3583880}') 2024-04-02 23:57:29.039 UTC [3583876][client backend][3/5098:0] DETAIL:  parameters: $1 = '3583879' ... 2024-04-03 00:02:29.096 UTC [3583876][client backend][3/9472:0] LOG:  execute isolationtester_waiting: SELECT pg_catalog.pg_isolation_test_session_is_blocked($1, '{3583877,3583878,3583879,3583880}') 2024-04-03 00:02:29.096 UTC [3583876][client backend][3/9472:0] DETAIL:  parameters: $1 = '3583878' 2024-04-03 00:02:29.172 UTC [3905345][not initialized][:0] LOG: connection received: host=[local] 2024-04-03 00:02:29.240 UTC [3583878][client backend][5/530:0] ERROR:  canceling statement due to user request The last step duration is 00:02:29.096 - 23:57:29.039 ~ 300 seconds (default max_step_wait for REL_15_STABLE- (for REL_16_STABLE+ the default value was increased to 360 by c99c67fc4)). The average deadlock-parallel duration for REL_15_STABLE on canebrake is around 128 seconds (for 140 runs I analyzed), but we can find also: test deadlock-parallel            ... ok       377895 ms https://buildfarm.postgresql.org/cgi-bin/show_stage_log.pl?nm=canebrake&dt=2024-03-27%2001%3A06%3A24&stg=isolation-check test deadlock-parallel            ... ok       302549 ms https://buildfarm.postgresql.org/cgi-bin/show_stage_log.pl?nm=canebrake&dt=2023-11-06%2012%3A47%3A01&stg=isolation-check test deadlock-parallel            ... ok       255045 ms https://buildfarm.postgresql.org/cgi-bin/show_stage_log.pl?nm=canebrake&dt=2023-11-09%2010%3A02%3A59&stg=isolation-check The similar situation on phycodurus: https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=phycodurus&dt=2024-02-11%2021:05:41 test deadlock-parallel            ... FAILED   389381 ms The average deadlock-parallel duration for REL_13_STABLE on phycodurus is around 78 seconds (for 138 recent runs), but there were also: test deadlock-parallel            ... ok       441736 ms https://buildfarm.postgresql.org/cgi-bin/show_stage_log.pl?nm=phycodurus&dt=2024-03-04%2015%3A19%3A04&stg=isolation-check test deadlock-parallel            ... ok       187844 ms https://buildfarm.postgresql.org/cgi-bin/show_stage_log.pl?nm=phycodurus&dt=2023-11-03%2016%3A13%3A46&stg=isolation-check And also pogona, REL_14_STABLE: https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=pogona&dt=2024-02-20%2003%3A50%3A49 test deadlock-parallel            ... FAILED   425482 ms (I could reach similar duration on a slowed-down VM, with JIT enabled as on these animals.) So, maybe these machines require larger PGISOLATIONTIMEOUT or there is still some OS/environment issue there? Best regards, Alexander